-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
23 lines (23 loc) · 1.36 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
env:
- LIBWS_METHOD=memcheck
- LIBWS_METHOD=autobahn CMAKE_ARGS="-DLIBWS_WITH_AUTOBAHN=ON"
- LIBWS_METHOD=coverage CMAKE_ARGS="-DLIBWS_WITH_MEMCHECK=OFF -DLIBWS_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug" COVERALLS=yes
language: c
compiler:
- gcc
- clang
matrix:
exclude:
- compiler: clang
env: LIBWS_METHOD=coverage CMAKE_ARGS="-DLIBWS_WITH_MEMCHECK=OFF -DLIBWS_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug" COVERALLS=yes
install:
- if [ x$LIBWS_METHOD == xcoverage ]; then sudo pip install cpp-coveralls; fi
- if [ x$LIBWS_METHOD == xcoverage ]; then sudo apt-get update -qq && sudo apt-get install -y -qq lcov valgrind; fi
- if [ x$LIBWS_METHOD == xmemcheck ]; then sudo apt-get update -qq && sudo apt-get install -y -qq lcov valgrind; fi
- if [ x$LIBWS_METHOD == xautobahn ]; then sudo pip install autobahntestsuite; fi
script:
- if [ x$LIBWS_METHOD == xcoverage ]; then cmake $CMAKE_ARGS . && cmake --build . && ctest --output-on-failure; fi
- if [ x$LIBWS_METHOD == xmemcheck ]; then mkdir build && cd build && cmake $CMAKE_ARGS .. && cmake --build . && ctest --output-on-failure; fi
- if [ x$LIBWS_METHOD == xautobahn ]; then sh -c ./.travis-ci-autobahn.sh; fi
after_success:
- if [ x$COVERALLS == xyes ]; then coveralls -x c --exclude test --exclude examples --exclude-pattern 'CMake.*?\.c' --exclude-pattern 'CMake.*?\.cpp' --exclude-pattern '.*?\.h'; fi