-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
59 lines (48 loc) · 1.47 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
language: c++
sudo: required
compiler:
- gcc
- clang
os:
- linux
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -qq update
#Codecov
- sudo pip install codecov
- chmod +x .get_code_cov.sh
- test -n $CC && unset CC
- test -n $CXX && unset CXX
install:
#Install libconfig
#- sudo apt-get install libconfig++-dev
- wget https://hyperrealm.github.io/libconfig/dist/libconfig-1.7.2.tar.gz
- tar -xvzf libconfig-1.7.2.tar.gz
- pushd libconfig-1.7.2 && ./configure && make && sudo make install && popd
#Install openMPI
- sudo apt-get install openmpi-bin
- sudo apt-get install libopenmpi-dev
#Codecov
- sudo apt-get install g++-5
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-5 90
script:
- mpic++ --showme
- mpic++ --version
#Compile without optimization and with coverage
- make test
#Run the program for different tests.
- cd bin/
- ./DaMaSCUS-CRUST .test_DAMIC.cfg
- ./DaMaSCUS-CRUST .test_XENON1T.cfg
- ./DaMaSCUS-CRUST .test_CRESST-surface.cfg
- ./DaMaSCUS-CRUST .test_CRESST-II.cfg
- ./DaMaSCUS-CRUST .test_Semiconductor.cfg
- ./DaMaSCUS-CRUST .test_SENSEI_surface.cfg
- ./DaMaSCUS-CRUST .test_XENON10e.cfg
- ./DaMaSCUS-CRUST .test_XENON100e.cfg
- ./DaMaSCUS-CRUST .test_DAMIC.cfg 0.5 1e-31 100 100
- cd ..
#Codecov
- ./.get_code_cov.sh
after_success:
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"