-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
29 lines (26 loc) · 1.66 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
sudo: false
language: cpp
compiler: clang
script:
- python3 test/verify_mutexes.py
- mkdir -p build
- cd build
- clang --coverage -g -std=gnu99 -Wno-unused-value -lpthread -D_GNU_SOURCE ../bq_websocket.c ../test/test_self.c -o test_self_push
- clang --coverage -g -std=gnu99 -Wno-unused-value -lpthread -DTEST_PULL -D_GNU_SOURCE ../bq_websocket.c ../test/test_self.c -o test_self_pull
- clang --coverage -g -std=gnu99 -Wno-unused-value -lpthread -DUSE_CASE_FILES -D_GNU_SOURCE ../bq_websocket.c ../test/fuzz/fuzz_client_handshake.c -o fuzz_client_handshake_cases
- clang --coverage -g -std=gnu99 -Wno-unused-value -lpthread -DUSE_CASE_FILES -D_GNU_SOURCE ../bq_websocket.c ../test/fuzz/fuzz_server_handshake.c -o fuzz_server_handshake_cases
- clang --coverage -g -std=gnu99 -Wno-unused-value -lpthread -DUSE_CASE_FILES -D_GNU_SOURCE ../bq_websocket.c ../test/fuzz/fuzz_protocol.c -o fuzz_protocol_cases
- clang --coverage -g -std=gnu99 -Wno-unused-value -lpthread -D_GNU_SOURCE ../bq_websocket.c ../bq_websocket_platform.c ../test/fuzz/fuzz_protocol.c ../examples/echo_client_pt.c -o example_echo_client_pt
- tar -xzf ../test/fuzz/fuzz_test_cases.tar.gz
- ./test_self_push
- ./test_self_pull
- ./fuzz_client_handshake_cases fuzz_test_cases/fuzz_
- ./fuzz_server_handshake_cases fuzz_test_cases/fuzz_
- ./fuzz_protocol_cases fuzz_test_cases/fuzz_
- ./example_echo_client_pt
- llvm-cov gcov bq_websocket bq_websocket_platform
- cp bq_websocket.c.gcov ../bq_websocket.c.gcov
- cp bq_websocket_platform.c.gcov ../bq_websocket_platform.c.gcov
- rm *.gcov
after_success:
- bash <(curl -s https://codecov.io/bash) -X gcov