-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
73 lines (63 loc) · 1.97 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
66
67
68
69
70
71
72
73
language: julia
os:
- linux
- osx
julia:
- 1.3
- 1.4
- nightly
env:
- MPI_IMPL=mpich
notifications:
email: false
cache:
directories:
- $HOME/.ccache
- $HOME/.julia/artifacts
- $HOME/.julia/registries # can we cache all of .julia?
before_install:
- sh ./conf/travis-install-mpi.sh $MPI_IMPL
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
if [ "$MPI_IMPL" == "intelmpi" ]; then
source $HOME/intel/compilers_and_libraries/linux/mpi/intel64/bin/mpivars.sh release
else
export JULIA_MPI_PATH=$HOME/$MPI_IMPL;
fi
fi
# Work around OpenMPI attempting to create overly long temporary
# file names - and erroring as a result
- export TMPDIR=/tmp
# Work around MacOS/OpenMPI issue:
# https://github.com/open-mpi/ompi/issues/6518
# https://github.com/open-mpi/ompi/issues/5798
- export OMPI_MCA_btl=self,tcp
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- travis_wait 20 julia --project=@. --color=yes -e 'using Pkg;
Pkg.activate();
println("Activate");
Pkg.instantiate();
println("Instantiate");
Pkg.test(coverage=true)';
after_success:
- julia -e 'using Pkg; cd(Pkg.dir("NeuralQuantum"));
Pkg.add("Coverage");
using Coverage;
Codecov.submit(Codecov.process_folder())'
jobs:
allow_failures:
- julia: 1.4
- julia: nightly
include:
- stage: "Documentation"
julia: 1.3
os: linux
script:
- julia --project=docs/ -e 'using Pkg;
Pkg.activate();
Pkg.add("Documenter");
Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate()'
- julia --project=docs/ docs/make.jl
after_success: skip