-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
117 lines (102 loc) · 4.11 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
language: cpp
sudo: true
branches:
only:
- master
cache:
- directories:
- $HOME/.cache
addons:
apt:
packages:
- autoconf
- libgstreamer1.0-dev
- libgstreamer-plugins-base1.0-dev
- default-jdk
script:
- export AWS_KVS_LOG_LEVEL=2
- make
- ulimit -c unlimited -S
- timeout --signal=SIGABRT 20m ./tst/producerTest
matrix:
allow_failures:
- env: allowTestFail=true
include:
# MacOS Builds
- name: "OSX GCC"
os: osx
compiler: gcc
before_install: skip # Only for Linux
before_script:
- mkdir build && cd build && cmake .. -DBUILD_TEST=TRUE
script:
- make
- ./tst/producerTest
- name: "OSX Clang"
os: osx
compiler: clang
before_install: skip # Only for Linux
before_script:
- mkdir build && cd build && cmake .. -DBUILD_TEST=TRUE -DCOMPILER_WARNINGS=TRUE
script:
- make
- ./tst/producerTest
# Code Coverage
- name: "Linux GCC Code Coverage"
os: linux
compiler: gcc
before_script:
- mkdir build && cd build && cmake .. -DCODE_COVERAGE=TRUE -DBUILD_TEST=TRUE -DBUILD_GSTREAMER_PLUGIN=TRUE -DBUILD_JNI=TRUE
after_success:
- for test_file in $(find CMakeFiles/KinesisVideoProducer.dir gstkvssink.dir KinesisVideoProducerJNI.dir -name '*.gcno'); do gcov $test_file; done
- bash <(curl -s https://codecov.io/bash)
# AddressSanitizer
- name: "Linux Clang AddressSanitizer"
os: linux
compiler: clang
env: ASAN_OPTIONS=detect_odr_violation=0:detect_leaks=1
before_script: mkdir build && cd build && cmake .. -DBUILD_TEST=TRUE -DADDRESS_SANITIZER=TRUE -DBUILD_GSTREAMER_PLUGIN=TRUE -DBUILD_JNI=TRUE
# UndefinedBehaviorSanitizer
- name: "Linux Clang UndefinedBehaviorSanitizer"
os: linux
compiler: clang
env: allowTestFail=true
# env: UBSAN_OPTIONS=halt_on_error=1
before_script: mkdir build && cd build && cmake .. -DBUILD_TEST=TRUE -DUNDEFINED_BEHAVIOR_SANITIZER=TRUE -DBUILD_GSTREAMER_PLUGIN=TRUE -DBUILD_JNI=TRUE
# MemorySanitizer
- name: "Linux Clang MemorySanitizer"
env: allowTestFail=true
before_install:
- mkdir build
- docker run -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -w /src/build -dit --name msan-tester -v $(pwd):/src seaduboi/kvs-msan-tester
- msan-tester() { docker exec -it msan-tester "$@"; }
script:
- msan-tester cmake .. -DBUILD_DEPENDENCIES=FALSE -DBUILD_TEST=TRUE -DMEMORY_SANITIZER=TRUE -DCMAKE_CXX_FLAGS="-stdlib=libc++ -L/usr/src/libcxx_msan/lib -lc++abi -I/usr/src/libcxx_msan/include -I/usr/src/libcxx_msan/include/c++/v1" -DBUILD_GSTREAMER_PLUGIN=TRUE -DBUILD_JNI=TRUE
- msan-tester make
- msan-tester ./tst/producerTest
# ThreadSanitizer
- name: "Linux Clang ThreadSanitizer"
os: linux
compiler: clang
env: allowTestFail=true
# env: TSAN_OPTIONS=halt_on_error=1:suppressions=../tst/suppressions/TSAN.supp
before_script: mkdir build && cd build && cmake .. -DBUILD_TEST=TRUE -DTHREAD_SANITIZER=TRUE -DBUILD_GSTREAMER_PLUGIN=TRUE -DBUILD_JNI=TRUE
# Old Version GCC 4.4
- name: "Linux GCC 4.4 Build"
os: linux
compiler: gcc
before_script:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -q update
- sudo apt-get -y install gcc-4.4
- export CC=gcc-4.4 && mkdir build && cd build && cmake .. -DBUILD_TEST=TRUE -DBUILD_GSTREAMER_PLUGIN=TRUE -DBUILD_JNI=TRUE
- name: "Windows MSVC"
os: windows
script:
- choco install nasm strawberryperl
- choco install gstreamer --version=1.16.2
- choco install gstreamer-devel --version=1.16.2 # gstreamer-devel has not been approved yet. Version number must be explicit to install
- unset CC CC_FOR_BUILD CXX CXX_FOR_BUILD # We want to use MSVC
- export "PATH=/c/Strawberry/perl/site/bin:/c/Strawberry/perl/bin:/c/Strawberry/c/bin:/c/Program Files/NASM:`pwd`/open-source/local/lib:`pwd`/open-source/local/bin:$PATH"
- .github/build_windows.bat
- cd build/tst && ./producerTest.exe