-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
55 lines (50 loc) · 2.19 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
# helpful link:
#https://stackoverflow.com/questions/27644586/how-to-set-up-travis-ci-with-multiple-languages
matrix:
include:
- language: cpp
compiler: gcc
# Optional: "dist" specifies the operating system ("bionic"=ubuntu18.04)
dist: bionic
install:
- sudo apt-get install valgrind
#- sudo apt-get install -qq cppcheck
script:
- cd tests
#- cppcheck --quiet --error-exitcode=1
- g++ -g -O0 -coverage -fno-inline -fno-inline-small-functions -fno-default-inline -I../include -I../jacobi_pd/include -o test_superpose3d test_superpose3d.cpp
- ./test_superpose3d 4 1000
- ./test_superpose3d 10 1000
- ./test_superpose3d 100 1000
- ./test_superpose3d 1000 1000
- ./test_superpose3d 10000 100
- ./test_superpose3d 100000 10
#- now use valgrind to find memory leaks and other errors:
- g++ -g -O0 -I../include -I../jacobi_pd/include -o test_superpose3d test_superpose3d.cpp
- valgrind --leak-check=yes --error-exitcode=1 ./test_superpose3d 10 10
- cd ../
after_success:
- bash <(curl -s https://codecov.io/bash)
- language: cpp
compiler: clang
# Optional: "dist" specifies the operating system ("bionic"=ubuntu18.04)
dist: bionic
install:
- sudo apt-get install valgrind
#- sudo apt-get install -qq cppcheck
script:
- cd tests
#- cppcheck --quiet --error-exitcode=1
- clang++ -g -O0 -coverage -fno-inline -fno-inline-small-functions -fno-default-inline -I../include -I../jacobi_pd/include -o test_superpose3d test_superpose3d.cpp
- ./test_superpose3d 4 1000
- ./test_superpose3d 10 1000
- ./test_superpose3d 100 1000
- ./test_superpose3d 1000 1000
- ./test_superpose3d 10000 100
- ./test_superpose3d 100000 10
#- now use valgrind to find memory leaks and other errors:
- clang++ -g -O0 -I../include -I../jacobi_pd/include -o test_superpose3d test_superpose3d.cpp
- valgrind --leak-check=yes --error-exitcode=1 ./test_superpose3d 10 10
- cd ../
after_success:
- bash <(curl -s https://codecov.io/bash)