-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
22 lines (22 loc) · 932 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
language: c
services:
- docker
compiler:
- clang
os: linux
# NOTE: I am using docker because clang in the travis images is old as fuck
install:
- docker pull debian:buster
- docker run --name debian-ci --detach --volume $(readlink -f .):/src debian:buster-backports sh -c 'while true; do sleep 1; done'
- docker exec debian-ci apt-get update
- docker exec debian-ci apt-get install --yes --quiet pkg-config cmake llvm-8 clang-8 libfuse2 libfuse-dev libglib2.0-0 libglib2.0-dev
branches:
only:
- master
script:
- docker exec debian-ci mkdir /src/build
- docker exec debian-ci sh -c 'cd /src/build && CC=clang-8 cmake .. -DTESTS=ON -DCOVERAGE=ON -DCMAKE_BUILD_TYPE=Debug && make -'
- docker exec debian-ci sh -c 'cd /src/build && ctest --output-on-failure'
- docker exec debian-ci sh -c 'cd /src/build && make coverage-export'
after_success:
- bash <(curl -s https://codecov.io/bash)