-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (56 loc) · 2.17 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: julia
os:
- linux
- osx
branches:
only:
- master
julia:
- 0.6.4
- 1.1
matrix:
allow_failures:
- julia: 0.6.4
notifications:
email: false
# before_install:
# - if [[ "$TRAVIS_JULIA_VERSION" != "0.6.4" ]]; then
# if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
# wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
# elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
# wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
# fi ;
# bash miniconda.sh -b -p $HOME/miniconda;
# export PATH="$HOME/miniconda/bin:$PATH";
# fi
install:
# - if [[ "$TRAVIS_JULIA_VERSION" != "0.6.4" ]]; then
# conda install --yes -c conda-forge pip numpy PyOpenGL;
# if [[ "$TRAVIS_OS_NAME" == "osx" ]];
# then pip install pyplasm ;
# echo "plasm installed ----" ;
# fi ;
# julia -e 'using Pkg; Pkg.add("PyCall"); ENV["PYTHON"] = read(`which python`, String)[1:end-1]; Pkg.build("PyCall")';
# julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/cvdlab/Plasm.jl", rev="julia-1.0"))';
# julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/cvdlab/LinearAlgebraicRepresentation.jl", rev="julia-1.0"))';
# fi
- if [[ "$TRAVIS_JULIA_VERSION" != "0.6.4" ]]; then
julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/cvdlab/LinearAlgebraicRepresentation.jl"))';
fi
after_success:
- echo "$TRAVIS_JULIA_VERSION"
- if [[ "$TRAVIS_JULIA_VERSION" == "0.6.4" ]]; then
julia -e 'cd(Pkg.dir("AlphaStructures")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())';
cd $TRAVIS_BUILD_DIR && julia -e 'Pkg.add("Documenter"); include(joinpath("docs", "make.jl"))';
else
julia -e 'using Pkg; cd(Pkg.dir("AlphaStructures")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())';
cd $TRAVIS_BUILD_DIR && julia -e 'using Pkg; Pkg.add("Documenter"); include(joinpath("docs", "make.jl"))';
fi
deploy:
provider: pages
skip_cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
local-dir: docs/build
on:
branch: master