This repository has been archived by the owner on Aug 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.travis.yml
102 lines (91 loc) · 2.84 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
sudo: false
language: c
compiler:
- clang
- gcc
env:
global:
- XI_BSP_TLS=wolfssl
- XI_MAKETARGET=tests
matrix:
- PRESET=ARM_REL
- PRESET=ARM_REL_MIN
# - PRESET=STM32FX
# XI_MAKETARGET=""
# - PRESET=STM32FX_NUCLEO_WIFI
# XI_MAKETARGET=""
# - PRESET=CC3200
# XI_MAKETARGET=""
# - PRESET=CC3200_SDK120
# XI_MAKETARGET=""
# - PRESET=CC3200_TLS_SOCKET
# XI_MAKETARGET=""
- PRESET=ESP32
XI_MAKETARGET=""
- PRESET=POSIX_DEV
- PRESET=POSIX_DEV_MIN
- PRESET=POSIX_REL
- PRESET=POSIX_REL_MIN
- PRESET=POSIX_REL
XI_BSP_TLS=mbedtls
- PRESET=POSIX_THREADING_REL
- PRESET=POSIX_UNSECURE_REL
XI_BSP_TLS=""
- TESTS=fuzztests
PRESET=FUZZ_TESTS
XI_BSP_TLS=""
XI_MAKETARGET="fuzz_tests"
CXX=clang++
cache:
apt
addons:
apt:
sources:
- llvm-toolchain-precise-3.8
- ubuntu-toolchain-r-test
packages:
- clang-3.8
- qemu-system
- libc6:i386
- expect
matrix:
exclude:
- compiler: clang
env: PRESET=ARM_REL_MIN
- compiler: clang
env: PRESET=ARM_REL
- compiler: clang
env: PRESET=STM32FX XI_MAKETARGET=""
- compiler: clang
env: PRESET=STM32FX_NUCLEO_WIFI XI_MAKETARGET=""
- compiler: clang
env: PRESET=CC3200 XI_MAKETARGET=""
- compiler: clang
env: PRESET=CC3200_SDK120 XI_MAKETARGET=""
- compiler: clang
env: PRESET=CC3200_TLS_SOCKET XI_MAKETARGET=""
- compiler: clang
env: PRESET=ESP32 XI_MAKETARGET=""
- compiler: gcc
env: TESTS=fuzztests PRESET=FUZZ_TESTS XI_BSP_TLS="" XI_MAKETARGET="fuzz_tests" CXX=clang++
before_script:
# https://wiki.ubuntu.com/SecurityTeam/Roadmap/KernelHardening#ptrace_Protection
- "if [[ ! $TESTS == 'fuzztests' ]]; then
if [[ $CC == *'clang'* ]]; then export CC='clang-3.8'; fi;
else
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope;
fi"
script:
- "set -e"
- "cd $HOME/build/xively/xively-client-c/"
- "expect res/travis/travis_build.expect make PRESET=$PRESET XI_DEBUG_OUTPUT=0 $XI_MAKETARGET;"
- "if [[ ! $CC == 'gcc' && ! $TESTS == 'fuzztests' ]]; then
make -C examples/mqtt_logic_example XI_CLIENT_LIB_PATH=../../bin/linux XI_BSP_TLS=$XI_BSP_TLS;
make -C examples/mqtt_logic_producer XI_CLIENT_LIB_PATH=../../bin/linux XI_BSP_TLS=$XI_BSP_TLS;
make -C examples/mqtt_logic_consumer XI_CLIENT_LIB_PATH=../../bin/linux XI_BSP_TLS=$XI_BSP_TLS;
make -C examples/mqtt_logic_example_two_contexts XI_CLIENT_LIB_PATH=../../bin/linux XI_BSP_TLS=$XI_BSP_TLS;
make -C examples/mqtt_last_will XI_CLIENT_LIB_PATH=../../bin/linux XI_BSP_TLS=$XI_BSP_TLS;
if [[ $CONFIG == 'senml' ]]; then
make -C examples/senml_serializer XI_CLIENT_LIB_PATH=../../bin/linux XI_BSP_TLS=$XI_BSP_TLS;
fi;
fi;"