forked from JoakimSoderberg/cargo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·37 lines (36 loc) · 1.68 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
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "fX7x2AA1BEBmT1scgpE7oGZYpUjvwfLsYSSNV22t1OdswUPQPwyRxeVG9Fk0DfpPRR8AotF6yY+kAxzY81BNlqo7gEAf+0keiwe5I9ek3lyAZBh2sWmue6pyAhrBFZI6Z6oDbz0mud/q0IPzh9ILMQIejz2p/C/VIKh6/FhAeII="
matrix:
- CARGO_METHOD=memcheck
- CARGO_METHOD=coveralls
CMAKE_ARGS="-DCARGO_WITH_MEMCHECK=OFF -DCARGO_COVERALLS=ON -DCARGO_TEST=ON -DCMAKE_BUILD_TYPE=Debug"
- CARGO_METHOD=noexamples
CMAKE_ARGS="-DCARGO_EXAMPLE=OFF"
- CARGO_METHOD=nohelper
CARGO_ARGS="-DCARGO_HELPER=OFF"
- CARGO_METHOD=noextrasamples
CARGO_ARGS="-DCARGO_EXTRA_SAMPLES=OFF"
- CARGO_METHOD=noshared
CARGO_ARGS="-DCARGO_BUILD_SHARED_LIB=OFF"
- CARGO_METHOD=nostatic
CARGO_ARGS="-DCARGO_BUILD_STATIC_LIB=OFF"
- CARGO_METHOD=onlystatic
CARGO_ARGS="-DCARGO_BUILD_STATIC_LIB=ON -DCARGO_BUILD_SHARED_LIB=OFF"
- CARGO_METHOD=onlyshared
CARGO_ARGS="-DCARGO_BUILD_STATIC_LIB=OFF -DCARGO_BUILD_SHARED_LIB=ON"
language: c
install: sudo apt-get -qq -y update && sudo apt-get install valgrind
script:
- if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then mkdir build && cd build && cmake -DCARGO_DEBUG=4 $CMAKE_ARGS .. && make && ctest --output-on-failure; fi
- if [ "$COVERITY_SCAN_BRANCH" != 1 ] && [ "$CARGO_METHOD" == "coveralls" ]; then cmake -DCARGO_DEBUG=0 .. && make && make coveralls; fi
addons:
coverity_scan:
project:
name: "JoakimSoderberg/cargo"
notification_email: [email protected]
build_command_prepend: "mkdir build && cd build && cmake .."
build_command: "make"
branch_pattern: coverity_scan