forked from Nheko-Reborn/mtxclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
98 lines (87 loc) · 2.07 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
---
language: cpp
sudo: required
dist: xenial
services:
- docker
notifications:
email: false
matrix:
include:
- os: osx
osx_image: xcode11.3 # for c++17
compiler: clang
addons:
homebrew:
packages:
- clang-format
- ninja
- openssl
update: true
- os: linux
compiler: gcc
env:
- CXX_VERSION=g++-8
- CC_VERSION=gcc-8
- CMAKE_GENERATOR=Ninja
- COVERAGE=ON
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- software-properties-common
- curl
- ninja-build
- pkg-config
- make
- g++-8
- unzip
- git
- libssl-dev
- openssl
- os: linux
compiler: clang
env:
- CXX_VERSION=clang++-6.0
- CC_VERSION=clang-6.0
- CMAKE_GENERATOR=Ninja
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-6.0
- sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- clang++-6.0
- clang-6.0
- software-properties-common
- curl
- ninja-build
- pkg-config
- make
- g++-8
- unzip
- git
- libssl-dev
- openssl
cache:
directories:
- .deps
- build/_deps
install: ./.ci/install.sh
script:
- $CXX --version
- cmake --version
# Start the synapse server to run the tests.
- if [ $TRAVIS_OS_NAME == linux ]; then make synapse; fi
# Build the lib and run the linter & tests.
- ./.ci/script.sh
after_success:
# Generate coverage report and upload report to CodeCov.
- |
if [ "$COVERAGE" == ON ]; then
./.ci/coverage.sh && \
bash <(curl -s https://codecov.io/bash) -f build/coverage.info || echo "Codecov failed"
fi