-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
192 lines (175 loc) · 8.99 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
cache:
directories:
- '$HOME/.sonar/cache'
- '$HOME/.conan'
- '$HOME/.pyenv'
env:
global:
- CONAN_USERNAME: "zhuhaow" # ADJUST WITH YOUR REFERENCE USERNAME!
- CONAN_LOGIN_USERNAME: "zhuhaow" # ADJUST WITH YOUR LOGIN USERNAME!
- CONAN_CHANNEL: "stable" # ADJUST WITH YOUR CHANNEL!
- CONAN_UPLOAD: "https://api.bintray.com/conan/zhuhaow/libnekit" # ADJUST WITH YOUR REMOTE!
- CONAN_STABLE_BRANCH_PATTERN: "release/*"
- CONAN_UPLOAD_ONLY_WHEN_STABLE: 1 # Will only upload when the branch matches "release/*"
- CONAN_REMOTES: "https://api.bintray.com/conan/bincrafters/public-conan,https://api.bintray.com/conan/zhuhaow/libnekit"
- CONAN_BUILD_POLICY: "missing"
- CONAN_DOCKER_32_IMAGES: "1"
osx: &osx
os: osx
language: objective-c
ios_default: &ios
os: osx
language: objective-c
linux: &linux
os: linux
sudo: required
language: python
python: "3.6"
services:
- docker
matrix:
include:
- <<: *linux
env: CONAN_GCC_VERSIONS=5 CONAN_DOCKER_IMAGE=lasote/conangcc5 CONAN_BUILD=1 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=5 CONAN_DOCKER_IMAGE=lasote/conangcc5 CONAN_BUILD=1 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=5 CONAN_DOCKER_IMAGE=lasote/conangcc5 CONAN_BUILD=1 CONAN_CURRENT_PAGE=3 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=5 CONAN_DOCKER_IMAGE=lasote/conangcc5 CONAN_BUILD=1 CONAN_CURRENT_PAGE=4 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=6 CONAN_DOCKER_IMAGE=lasote/conangcc6 CONAN_BUILD=1 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=6 CONAN_DOCKER_IMAGE=lasote/conangcc6 CONAN_BUILD=1 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=6 CONAN_DOCKER_IMAGE=lasote/conangcc6 CONAN_BUILD=1 CONAN_CURRENT_PAGE=3 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=6 CONAN_DOCKER_IMAGE=lasote/conangcc6 CONAN_BUILD=1 CONAN_CURRENT_PAGE=4 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=7 CONAN_DOCKER_IMAGE=lasote/conangcc7 CONAN_BUILD=1 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=7 CONAN_DOCKER_IMAGE=lasote/conangcc7 CONAN_BUILD=1 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=7 CONAN_DOCKER_IMAGE=lasote/conangcc7 CONAN_BUILD=1 CONAN_CURRENT_PAGE=3 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=7 CONAN_DOCKER_IMAGE=lasote/conangcc7 CONAN_BUILD=1 CONAN_CURRENT_PAGE=4 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=8 CONAN_DOCKER_IMAGE=lasote/conangcc8 CONAN_BUILD=1 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=8 CONAN_DOCKER_IMAGE=lasote/conangcc8 CONAN_BUILD=1 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=8 CONAN_DOCKER_IMAGE=lasote/conangcc8 CONAN_BUILD=1 CONAN_CURRENT_PAGE=3 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_GCC_VERSIONS=8 CONAN_DOCKER_IMAGE=lasote/conangcc8 CONAN_BUILD=1 CONAN_CURRENT_PAGE=4 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=3.9 CONAN_DOCKER_IMAGE=lasote/conanclang39 CONAN_BUILD=1 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=3.9 CONAN_DOCKER_IMAGE=lasote/conanclang39 CONAN_BUILD=1 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=3.9 CONAN_DOCKER_IMAGE=lasote/conanclang39 CONAN_BUILD=1 CONAN_CURRENT_PAGE=3 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=3.9 CONAN_DOCKER_IMAGE=lasote/conanclang39 CONAN_BUILD=1 CONAN_CURRENT_PAGE=4 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=4.0 CONAN_DOCKER_IMAGE=lasote/conanclang40 CONAN_BUILD=1 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=4.0 CONAN_DOCKER_IMAGE=lasote/conanclang40 CONAN_BUILD=1 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=4.0 CONAN_DOCKER_IMAGE=lasote/conanclang40 CONAN_BUILD=1 CONAN_CURRENT_PAGE=3 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=4.0 CONAN_DOCKER_IMAGE=lasote/conanclang40 CONAN_BUILD=1 CONAN_CURRENT_PAGE=4 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=5.0 CONAN_DOCKER_IMAGE=lasote/conanclang50 CONAN_BUILD=1 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=5.0 CONAN_DOCKER_IMAGE=lasote/conanclang50 CONAN_BUILD=1 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=5.0 CONAN_DOCKER_IMAGE=lasote/conanclang50 CONAN_BUILD=1 CONAN_CURRENT_PAGE=3 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=5.0 CONAN_DOCKER_IMAGE=lasote/conanclang50 CONAN_BUILD=1 CONAN_CURRENT_PAGE=4 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=6.0 CONAN_DOCKER_IMAGE=lasote/conanclang60 CONAN_BUILD=1 CONAN_CURRENT_PAGE=1 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=6.0 CONAN_DOCKER_IMAGE=lasote/conanclang60 CONAN_BUILD=1 CONAN_CURRENT_PAGE=2 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=6.0 CONAN_DOCKER_IMAGE=lasote/conanclang60 CONAN_BUILD=1 CONAN_CURRENT_PAGE=3 CONAN_TOTAL_PAGES=4
- <<: *linux
env: CONAN_CLANG_VERSIONS=6.0 CONAN_DOCKER_IMAGE=lasote/conanclang60 CONAN_BUILD=1 CONAN_CURRENT_PAGE=4 CONAN_TOTAL_PAGES=4
- <<: *osx
osx_image: xcode8.3
env: CONAN_APPLE_CLANG_VERSIONS=8.1 CONAN_BUILD=1
- <<: *osx
osx_image: xcode9
env: CONAN_APPLE_CLANG_VERSIONS=9.0 CONAN_BUILD=1
- <<: *osx
osx_image: xcode9.3
env: CONAN_APPLE_CLANG_VERSIONS=9.1 CONAN_BUILD=1
- <<: *osx
osx_image: xcode10
env: CONAN_APPLE_CLANG_VERSIONS=10.0 CONAN_BUILD=1
- <<: *ios
osx_image: xcode8.3
env: CONAN_APPLE_CLANG_VERSIONS=8.1 CONAN_BUILD=1 CONAN_BASE_PROFILE="ios" CONAN_RUN_TESTS=0 CONAN_ARCHS="armv7"
- <<: *ios
osx_image: xcode9
env: CONAN_APPLE_CLANG_VERSIONS=9.0 CONAN_BUILD=1 CONAN_BASE_PROFILE="ios" CONAN_RUN_TESTS=0 CONAN_ARCHS="armv7"
- <<: *ios
osx_image: xcode9.3
env: CONAN_APPLE_CLANG_VERSIONS=9.1 CONAN_BUILD=1 CONAN_BASE_PROFILE="ios" CONAN_RUN_TESTS=0 CONAN_ARCHS="armv7"
- <<: *ios
osx_image: xcode10
env: CONAN_APPLE_CLANG_VERSIONS=10.0 CONAN_BUILD=1 CONAN_BASE_PROFILE="ios" CONAN_RUN_TESTS=0 CONAN_ARCHS="armv7"
- os: linux
language: cpp
env: GCC_VERSION=7 MATRIX_EVAL="CC=gcc-${GCC_VERSION} && CXX=g++-${GCC_VERSION}" COMPILE_PREFIX="build-wrapper-linux-x86-64 --out-dir bw-output" CONAN_CONFIG="-s cppstd=14 -s compiler.libcxx=libstdc++11 --build=gtest --build=missing" CONAN_CPU_COUNT=4
addons:
coverity_scan:
project:
name: "zhuhaow/libnekit"
notification_email: zhuhaow@gmail.com
build_command: "make"
branch_pattern: coverity_scan
build_command_prepend: >
cov-configure --comptype gcc --compiler `which gcc-${GCC_VERSION}`;
pipenv run conan install . -u -if build/ ${CONAN_CONFIG} --build;
cmake -H. -Bbuild -DCOVERAGE=ON;
cmake .
sonarcloud:
organization: "zhuhaow-github"
token:
secure: "PvuwWq/PWiRBSlaVvJSoa6Q9xZeQntRkA6x0rMQvApago+MsfquYekHMZpN6Wpk4bb5PswDYVmZdgqt9D8vFDieEIAlJ9Zr/CD/YZ1FTvWuL3fzVqM3WFJLaujrpS0jxWV6mx4qfmkU+po5s/z5l3XopxAoabmON/CuyJn3as/PR4xI50bDCqeYO3JHGllHyv9VFlqX0SQ2q45k2Ky9nU+m6oEJlkkmpudDpXHGjn4hECr6fTICkfVsgEWUJBPpTd96ve4cAdOxhHwoK1uhU2bwNrqAUuu8SdE0BR8iUhZjVm7Ha/IK6F0aIIUXdSXiVxDkgKT7VoPT9EddNGh3qLBoFnUwAezEl47y5uaJzeFQpN9EhEnh+Dqdn/3bCVBmpLn3+7toI2QlIYCRRgE/9semV83yILP4TBJmtyvruE7gWV7HB/AANe4/F6oU1TaoS3Lis868Sh2lczusQNkDo1pr8uZo1Pzjoe46IoLrGo/mhDA3cmTYsbqasOQ/7q3hOgWX7DjR2yV3p9ne+/eHlGyOe6N+dMod2ZeLFKLFa0yeXQB1zpW9ADpaXMu0LP/G1YRd7ams7auHmksths0vzzPEivoI8QXhaQYRZGts3vsNbplondrQkHEaTwIIcBVVff2BUzV3k4XW5eeP57Bzx9MkryJXPXvkRFjpxfi4bO5w="
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- valgrind
- g++-7
before_install:
- eval "${MATRIX_EVAL}"
install:
- |
if [[ "${CONAN_BUILD}" == 1 ]]; then
chmod +x .travis/install.sh && ./.travis/install.sh
else
pip install --user pipenv urllib3[secure];
pipenv install --deploy
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
./scripts/install_cmake.sh;
export PATH=`pwd`/../cmake:$PATH;
cmake --version;
fi
fi
before_script:
- |
if [[ "$CONAN_BUILD" != 1 ]]; then
pipenv run conan remote add -f bincrafters https://api.bintray.com/conan/bincrafters/public-conan
pipenv run conan remote add -f libnekit https://api.bintray.com/conan/zhuhaow/libnekit
fi
script:
- |
if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then
if [[ "${CONAN_BUILD}" == 1 ]]; then
chmod +x .travis/run.sh
./.travis/run.sh
else
./.travis/sonar_build.sh;
fi
fi