-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
81 lines (77 loc) · 1.87 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
74
75
76
77
78
79
80
81
sudo: required
dist: trusty
language: cpp
addons:
apt:
packages:
- gcc-6
- g++-6
- swig
- libfftw3-dev
- libcfitsio3-dev
- libmuparser-dev
- python-dev
- python-numpy
- python-setuptools
- python3-setuptools
- python3-dev
- cmake
- libhdf5-serial-dev
- python-matplotlib
- python3-matplotlib
- python-scipy
- python3-scipy
- libiomp5
- libiomp-dev
- doxygen
- graphviz
sources: &sources
- ubuntu-toolchain-r-test
cache:
directories:
- $HOME/radiopropa_cache
matrix:
include:
- os : linux
dist: xenial
compiler: gcc
env:
- COMPILER_NAME=gcc CXX=g++-6 CC=gcc-6
- PYTHON_EXECUTABLE=/usr/bin/python3
- BUILD_DOC=true
- os : linux
dist: xenial
compiler: clang
env:
- PYTHON_EXECUTABLE=/usr/bin/python3
- LD_LIBRARY_PATH=/usr/local/clang/lib:$LD_LIBRARY_PATH
- os : linux
dist: xenial
compiler: gcc
env:
- COMPILER_NAME=gcc CXX=g++-6 CC=gcc-6
- PYTHON_EXECUTABLE=/usr/bin/python2
- os : linux
dist: xenial
compiler: clang
env:
- PYTHON_EXECUTABLE=/usr/bin/python2
- LD_LIBRARY_PATH=/usr/local/clang/lib:$LD_LIBRARY_PATH
before_install:
- echo "TRAVIS_OS_NAME=$TRAVIS_OS_NAME"
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
HOMEBREW_NO_AUTO_UPDATE=1 brew install swig;
HOMEBREW_NO_AUTO_UPDATE=1 brew install gcc || true;
HOMEBREW_NO_AUTO_UPDATE=1 brew link --overwrite gcc;
fi;
before_script:
- cd radiopropa
- mkdir build
- cd build
- cmake .. -DENABLE_PYTHON=True -DPYTHON_EXECUTABLE=$PYTHON_EXECUTABLE -DENABLE_TESTING=On
script:
- VERBOSE=1 make
- make test
after_failure:
- cat Testing/Temporary/LastTest.log