-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
61 lines (54 loc) · 1.98 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
language: julia
sudo: required
os:
- linux
# - osx
julia:
- 0.6
# - nightly
notifications:
email: false
env:
- TEST_ADVECTION=1; MPI_IMPL="mpich3"
- TEST_EULER=1; MPI_IMPL="mpich3"
- TEST_SIMPLEODE=1; MPI_IMPL="mpich3"
- TEST_ELLIPTIC=1; MPI_IMPL="mpich3"
# this hangs, for reasons unknown
# - TEST_ADVECTION=1; MPI_IMPL="openmpi"
# - TEST_EULER=1; MPI_IMPL="openmpi"
cache:
directories:
- $HOME/.julia/v0.6/PETSc2/deps/petsc-3.9.4/arch-linux2-c-debug/lib/
before_install:
- sudo apt-get update -qq
- sudo apt-get install build-essential gfortran perl g++ gcc cmake m4 git
- sudo apt-get install -y liblapack-dev liblapack3
- sudo apt-get install -y libblas-dev libblas3
- sudo ./deps/travis-install-mpi.sh $MPI_IMPL
# setting these variables will help cmake find MPI
- export CC=mpicc
- export FC=mpif90
- export CXX=mpicxx
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'versioninfo(); Pkg.clone(pwd())'
# the cached files interfere with the build system, move them temporarily
- ls ~/.julia/v0.6/
- ls ~/.julia/v0.6/PETSc2/deps
- source ./deps/move_petsccache.sh remove
- julia --check-bounds=yes -e 'Pkg.build("PDESolver")'
- source ./deps/move_petsccache.sh restore # move files back
- ls ~/.julia/v0.6/PETSc2/
- ls ~/.julia/v0.6/PETSc2/deps
# - cd ~/.julia/v0.6/PumiInterface/src
# - source ./use_julialib.sh
- cd ~/.julia/v0.6/PDESolver/test
# - ./runtests_fast.sh
- ./runtests_travis.sh
after_success:
# - julia -e 'cd(Pkg.dir("PDESolver")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
# - julia -e 'cd(Pkg.dir("PDESolver")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
# uncomment the following lines to override the default test script
#script:
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia --check-bounds=yes -e 'Pkg.clone(pwd()); Pkg.build("PDESolver"); Pkg.test("PDESolver"; coverage=true)'