-
-
Notifications
You must be signed in to change notification settings - Fork 69
/
.travis.yml
79 lines (76 loc) · 2.02 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
language: c
os: linux
dist: focal
branches:
only:
- master
services:
- docker
compiler:
- gcc
cache:
directories:
- docker_images
before_install:
- echo "deb http://ppa.launchpad.net/snaipewastaken/ppa/ubuntu cosmic main" | sudo tee -a ${TRAVIS_ROOT}/etc/apt/sources.list >/dev/null
- sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com CE6500E9003E6E24
- sudo apt-get -q update
- sudo apt-get -y install pkg-config doxygen openssl zlib1g-dev build-essential criterion-dev gcovr graphviz cppcheck
- docker load -i docker_images/images.tar || true
before_cache:
- docker save -o docker_images/images.tar $(docker images -a -q)
stages:
- cppcheck
- docs
- criterion
- autobahn
jobs:
include:
- stage: cppcheck
script:
- cppcheck --language=c -f -q --enable=warning,performance,portability --std=c11 --error-exitcode=1 -itest -Iinclude -Iextensions -Isubprotocols . >build.log 2>&1 || (cat build.log && rm build.log && exit 1)
- stage: docs
script:
- ./scripts/travis.sh
- make docs
deploy:
strategy: git
provider: pages
cleanup: false
skip_cleanup: true
local_dir: generated
github_token: $GH_REPO_TOKEN
keep_history: true
project_name: WSServer
on:
branch: master
- stage: criterion
script:
- ./scripts/travis.sh
- make test
deploy:
strategy: git
provider: pages
cleanup: false
skip_cleanup: true
local_dir: generated
github_token: $GH_REPO_TOKEN
keep_history: true
project_name: WSServer
on:
branch: master
- stage: autobahn
script:
- ./scripts/travis.sh
- make autobahn
deploy:
strategy: git
provider: pages
cleanup: false
skip_cleanup: true
local_dir: generated
github_token: $GH_REPO_TOKEN
keep_history: true
project_name: WSServer
on:
branch: master