-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (40 loc) · 1.5 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
os:
- linux
# Disabled due to lack of OpenMP support in Travis' OSX environment
# - osx
language: c
compiler:
- gcc
# No clang with OpenMP support until Ubuntu 16.04 (via libomp-dev)
# - clang
install:
- mkdir _dep_install
# heartbeats-simple dependency
- wget https://github.com/libheartbeats/heartbeats-simple/archive/master.zip
- unzip master.zip
- rm master.zip
- mkdir -p heartbeats-simple-master/_build
- cd heartbeats-simple-master/_build
- cmake -DCMAKE_INSTALL_PREFIX=../../_dep_install ..
- cmake --build . --target install
- cd ../..
# energymon dependency (use default dummy implementation)
- wget https://github.com/energymon/energymon/archive/master.zip
- unzip master.zip
- rm master.zip
- mkdir -p energymon-master/_build
- cd energymon-master/_build
- cmake -DCMAKE_INSTALL_PREFIX=../../_dep_install ..
- cmake --build . --target install
- cd ../..
script:
- mkdir _build
- cd _build
# Test build with stricter flags
- export CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector -g3 -pedantic -W -Wall -Wbad-function-cast -Wcast-align
-Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-nonliteral -Winline
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-unused-parameter -Wpointer-arith -Wshadow
-Wstrict-prototypes -Wstack-protector -Wswitch -Wundef -Wwrite-strings"
- PKG_CONFIG_PATH="../_dep_install/lib/pkgconfig" cmake .. -DCMAKE_C_FLAGS="$CFLAGS"
- cmake --build .
- ctest -VV