forked from QubesOS/qubes-core-qrexec
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
54 lines (51 loc) · 1.73 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
sudo: required
dist: bionic
language: python
python: '3.7'
services:
- xvfb
- docker
install:
- git clone https://github.com/QubesOS/qubes-builder ~/qubes-builder
script: ~/qubes-builder/scripts/travis-build
env:
- DIST_DOM0=fc31 USE_QUBES_REPO_VERSION=4.1 USE_QUBES_REPO_TESTING=1
- DISTS_VM=fc29 USE_QUBES_REPO_VERSION=4.1 USE_QUBES_REPO_TESTING=1
- DISTS_VM=fc30 USE_QUBES_REPO_VERSION=4.1 USE_QUBES_REPO_TESTING=1
- DISTS_VM=stretch USE_QUBES_REPO_VERSION=4.1 USE_QUBES_REPO_TESTING=1
- DISTS_VM=buster USE_QUBES_REPO_VERSION=4.1 USE_QUBES_REPO_TESTING=1
- DISTS_VM=centos7 USE_QUBES_REPO_VERSION=4.1 USE_QUBES_REPO_TESTING=1
jobs:
include:
- name: pylint
install:
- docker build -t qrexec-test ci
env: DOCKER_RUN="docker run -v $TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR -w $TRAVIS_BUILD_DIR -- qrexec-test"
script:
- $DOCKER_RUN pylint qrexec
- name: run-tests
install:
- pip install --quiet codecov
- pip install --quiet 'coverage<5.0'
- docker build -t qrexec-test ci
env: DOCKER_RUN="docker run -v $TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR -v /tmp/.X11-unix:/tmp/.X11-unix -w $TRAVIS_BUILD_DIR -e DISPLAY=$DISPLAY -- qrexec-test"
script:
- $DOCKER_RUN ./run-tests
# use gcov from within the container
- $DOCKER_RUN find . -type f -name '*.gcno' -execdir gcov -pb {} +
- find . -type f -name '*.gcno' -exec rm {} +
- name: fuzz
install:
- sudo apt-get -y install clang
script:
- make -C fuzz test
- stage: deploy
python: '3.6'
script: ~/qubes-builder/scripts/travis-deploy
after_success:
- codecov
# don't build tags which are meant for code signing only
branches:
except:
- /.*_.*/
- build