-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (40 loc) · 1.07 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
language: c++
sudo: required
compiler:
- gcc
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 Eigen
- sudo apt-get install libeigen3-dev
- sudo ln -s /usr/include/eigen3/Eigen /usr/local/include/Eigen
#Install libconfig
- sudo apt-get install libconfig++-dev
#Install openMPI
- sudo apt-get install openmpi-bin
- sudo apt-get install libopenmpi-dev
#Codecov
- sudo apt-get install -qq 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
- cd bin/
- mpirun -n 1 DaMaSCUS-Simulator .test.cfg
- mpirun -n 1 DaMaSCUS-Analyzer Test
- cd ..
#Codecov
- ./.get_code_cov.sh
after_success:
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"