forked from CrowCpp/Crow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
193 lines (176 loc) · 4.53 KB
/
.drone.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
192
193
kind: pipeline
type: docker
name: amd64-pull
platform:
os: linux
arch: amd64
steps:
- name: build-and-test
image: ubuntu:focal
environment:
COVERALLS_REPO_TOKEN:
from_secret: coveralls_token
APP_ID:
from_secret: appid
APP_INSTALLATION:
from_secret: appins
PK:
from_secret: pk
commands:
- export DEBIAN_FRONTEND=noninteractive
- export TRAVIS_BRANCH=$DRONE_BRANCH
- export TRAVIS_JOB_ID=$DRONE_BUILD_NUMBER
- export COVERALLS_PULL_REQUEST=$DRONE_PULL_REQUEST
- apt-get -y update
- apt-get -y install libasio-dev doxygen mkdocs graphviz zlib1g-dev gcc clang clang-format make cmake python3 python3-pip git openssl libssl-dev jq wget curl
- git clone https://github.com/CrowCpp/cpp-coveralls.git
- cd cpp-coveralls
- pip3 install . --no-input
- cd ..
- export CC=/usr/bin/gcc
- export CXX=/usr/bin/g++
- mkdir build
- cd build
- cmake .. -DCROW_FEATURES="ssl;compression" -DCROW_AMALGAMATE=ON
- make -j4
- ctest -V -j4
- cd ..
- coveralls --verbose --exclude-pattern .*/http_parser_merged.h --exclude-pattern .*/TinySHA1.hpp
- git clone https://github.com/CrowCpp/crow-clang-format.git
- cd crow-clang-format
- chmod +x crow-clang-format.sh get-access-token.sh make-jwt.sh
- ./crow-clang-format.sh
- cd ..
- export CC=/usr/bin/clang
- export CXX=/usr/bin/clang++
- mkdir build-clang
- cd build-clang
- cmake .. -DCROW_FEATURES="ssl;compression" -DCROW_AMALGAMATE=ON
- make -j4
- ctest -V -j4
trigger:
branch:
- master
event:
- pull_request
---
kind: pipeline
type: docker
name: arm64-pull
platform:
os: linux
arch: arm64
steps:
- name: build-and-test
image: ubuntu:focal
commands:
- export DEBIAN_FRONTEND=noninteractive
- apt-get -y update
- apt-get -y install libasio-dev zlib1g-dev gcc clang make cmake python3 openssl libssl-dev
- mkdir build
- cd build
- cmake --version
- cmake .. -DCROW_FEATURES="ssl;compression" -DCROW_AMALGAMATE=ON
- make -j4
- ctest -V -j4
- cd ..
- export CC=/usr/bin/clang
- export CXX=/usr/bin/clang++
- mkdir build-clang
- cd build-clang
- cmake .. -DCROW_FEATURES="ssl;compression" -DCROW_AMALGAMATE=ON
- make -j4
- ctest -V -j4
trigger:
branch:
- master
event:
- pull_request
---
kind: pipeline
type: docker
name: amd64-master
platform:
os: linux
arch: amd64
steps:
- name: build-and-test
image: ubuntu:focal
environment:
COVERALLS_REPO_TOKEN:
from_secret: coveralls_token
GH_REPO_TOKEN:
from_secret: repo_token
GH_REPO_NAME: crow
GH_REPO_REF: github.com/crowcpp/crow.git
THEME_REPO_REF: github.com/crowcpp/darxygen.git
commands:
- export DRONE_BUILD_DIR=$PWD
- export DEBIAN_FRONTEND=noninteractive
- export DOXYFILE=$DRONE_BUILD_DIR/Doxyfile
- export TRAVIS_BRANCH=$DRONE_REPO_BRANCH
- export TRAVIS_JOB_ID=$DRONE_BUILD_NUMBER
- apt-get -y update
- apt-get -y install libasio-dev doxygen mkdocs graphviz zlib1g-dev gcc clang make cmake python3 python3-pip git openssl libssl-dev
- pip3 install mkdocs-material mkdocs-redirects pyyaml mkdocs-meta-descriptions-plugin --no-input
- git clone https://github.com/CrowCpp/cpp-coveralls.git
- cd cpp-coveralls
- pip3 install . --no-input
- cd ..
- export CC=/usr/bin/gcc
- export CXX=/usr/bin/g++
- mkdir build
- cd build
- cmake .. -DCROW_FEATURES="ssl;compression" -DCROW_AMALGAMATE=ON
- make -j4
- ctest -V -j4
- cd ..
- coveralls --verbose --exclude-pattern .*/http_parser_merged.h --exclude-pattern .*/TinySHA1.hpp
- export CC=/usr/bin/clang
- export CXX=/usr/bin/clang++
- mkdir build-clang
- cd build-clang
- cmake .. -DCROW_FEATURES="ssl;compression" -DCROW_AMALGAMATE=ON
- make -j4
- ctest -V -j4
- cd ..
- chmod +x scripts/generateDocumentationAndDeploy.sh
- ./scripts/generateDocumentationAndDeploy.sh
trigger:
branch:
- master
event:
- push
---
kind: pipeline
type: docker
name: arm64-master
platform:
os: linux
arch: arm64
steps:
- name: build-and-test
image: ubuntu:focal
commands:
- export DEBIAN_FRONTEND=noninteractive
- apt-get -y update
- apt-get -y install libasio-dev zlib1g-dev gcc clang make cmake python3 openssl libssl-dev
- mkdir build
- cd build
- cmake --version
- cmake .. -DCROW_FEATURES="ssl;compression" -DCROW_AMALGAMATE=ON
- make -j4
- ctest -V -j4
- cd ..
- export CC=/usr/bin/clang
- export CXX=/usr/bin/clang++
- mkdir build-clang
- cd build-clang
- cmake .. -DCROW_FEATURES="ssl;compression" -DCROW_AMALGAMATE=ON
- make -j4
- ctest -V -j4
trigger:
branch:
- master
event:
- push