forked from qmcurrents/gimic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
61 lines (55 loc) · 1.35 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: python
python:
- 2.7
sudo: false
matrix:
include:
- os: linux
compiler: gcc
python: 2.7
addons: &gcc49
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++', 'gcc', 'gfortran', 'valgrind']
env:
- CXX='g++'
- CC='gcc'
- FC='gfortran'
- TRAVIS_TEST=1 # this is a workaround to trigger include in src/CMakeLists.txt
- CTEST_OUTPUT_ON_FAILURE=1
- DEBUG_BUILD=0
- os: linux
compiler: gcc
python: 2.7
addons: &gcc49
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++', 'gcc', 'gfortran', 'valgrind']
env:
- CXX='g++'
- CC='gcc'
- FC='gfortran'
- TRAVIS_TEST=1 # this is a workaround to trigger include in src/CMakeLists.txt
- CTEST_OUTPUT_ON_FAILURE=1
- DEBUG_BUILD=1
install:
- pip install -r requirements.txt
script:
- if [ "$DEBUG_BUILD" = 0 ];
then
./setup &&
cd build &&
make -j2 &&
make install &&
ctest -j2 -E valgrind;
fi
- if [ "$DEBUG_BUILD" = 1 ];
then
./setup --cmake-options="-DENABLE_VALGRIND_TESTS=ON" --type=debug build-debug &&
cd build-debug &&
make -j2 &&
make install &&
ctest -j2 -R valgrind;
fi
notifications:
email: false