-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
72 lines (60 loc) · 1.54 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
language: julia
os:
- linux
- osx
julia:
- 1.0
- 1.1
- nightly
matrix:
allow_failures:
- julia: nightly
notifications:
email:
recipients:
- nslindquist@csbsju.edu
on_success: never
on_failure: always
cache:
directories:
- $HOME/.julia/packages/MPI/
- $HOME/Library/Caches/Homebrew
- /usr/local/Homebrew
# homebrew caching comes from https://stackoverflow.com/questions/39930171/cache-brew-builds-with-travis-ci
before_cache:
- brew cleanup
- rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/homebrew-cask
#MPI.jl needs mpi binaries plus compilers avalible
addons:
apt:
packages:
- gfortran
- mpich
- libmpich-dev
before_script:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [ -d /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask ]; then
rm -rf /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask
fi
find -type d -name .git -exec bash -c "cd '{}'/.. && git clean -fxd" ";"
brew cleanup
brew update --merge
brew upgrade cmake
brew cask uninstall oclint # Prevent conflict with gcc
brew install mpich
fi
before_install:
- export CC=mpicc
- export FC=mpif90
# generate documentation
jobs:
include:
- stage: "Documentation"
julia: 1.1
os: linux
script:
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate()'
- julia --project=docs/ docs/make.jl
after_success: skip