2021-04-01 05:50:10 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
commands:
|
|
|
|
- export DEBIAN_FRONTEND=noninteractive
|
2021-08-13 17:17:48 +00:00
|
|
|
- export TRAVIS_BRANCH=$DRONE_BRANCH
|
2021-04-14 11:03:27 +00:00
|
|
|
- export TRAVIS_JOB_ID=$DRONE_BUILD_NUMBER
|
2021-09-30 16:15:09 +00:00
|
|
|
- export COVERALLS_PULL_REQUEST=$DRONE_PULL_REQUEST
|
2021-04-01 05:50:10 +00:00
|
|
|
- apt-get -y update
|
2021-04-17 09:28:43 +00:00
|
|
|
- apt-get -y install libboost-all-dev doxygen mkdocs graphviz zlib1g-dev gcc clang make cmake python3 python3-pip git openssl libssl-dev
|
2021-10-06 10:34:37 +00:00
|
|
|
- pip3 install mkdocs-material mkdocs-redirects pyyaml --no-input
|
2021-09-29 02:23:20 +00:00
|
|
|
- git clone https://github.com/CrowCpp/cpp-coveralls.git
|
|
|
|
- cd cpp-coveralls
|
|
|
|
- pip3 install . --no-input
|
|
|
|
- cd ..
|
2021-04-01 05:50:10 +00:00
|
|
|
- export CC=/usr/bin/gcc
|
|
|
|
- export CXX=/usr/bin/g++
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2021-09-28 19:03:56 +00:00
|
|
|
- cmake .. -DCROW_ENABLE_COMPRESSION=ON -DCROW_ENABLE_SSL=ON -DCROW_AMALGAMATE=ON
|
2021-04-05 04:18:45 +00:00
|
|
|
- make -j4
|
|
|
|
- ctest -V -j4
|
2021-04-01 05:50:10 +00:00
|
|
|
- cd ..
|
2021-09-30 01:50:37 +00:00
|
|
|
- coveralls --verbose --exclude-pattern .*/http_parser_merged.h --exclude-pattern .*/TinySHA1.hpp
|
2021-04-01 05:50:10 +00:00
|
|
|
- export CC=/usr/bin/clang
|
|
|
|
- export CXX=/usr/bin/clang++
|
|
|
|
- mkdir build-clang
|
|
|
|
- cd build-clang
|
2021-09-28 19:03:56 +00:00
|
|
|
- cmake .. -DCROW_ENABLE_COMPRESSION=ON -DCROW_ENABLE_SSL=ON -DCROW_AMALGAMATE=ON
|
2021-04-05 04:18:45 +00:00
|
|
|
- make -j4
|
|
|
|
- ctest -V -j4
|
2021-04-01 05:50:10 +00:00
|
|
|
|
|
|
|
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
|
2021-04-17 09:28:43 +00:00
|
|
|
- apt-get -y install libboost-all-dev zlib1g-dev gcc clang make cmake python3 openssl libssl-dev
|
2021-04-01 05:50:10 +00:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake --version
|
2021-09-28 19:03:56 +00:00
|
|
|
- cmake .. -DCROW_ENABLE_COMPRESSION=ON -DCROW_ENABLE_SSL=ON -DCROW_AMALGAMATE=ON
|
2021-04-05 04:18:45 +00:00
|
|
|
- make -j4
|
|
|
|
- ctest -V -j4
|
2021-04-01 05:50:10 +00:00
|
|
|
- cd ..
|
|
|
|
- export CC=/usr/bin/clang
|
|
|
|
- export CXX=/usr/bin/clang++
|
|
|
|
- mkdir build-clang
|
|
|
|
- cd build-clang
|
2021-09-28 19:03:56 +00:00
|
|
|
- cmake .. -DCROW_ENABLE_COMPRESSION=ON -DCROW_ENABLE_SSL=ON -DCROW_AMALGAMATE=ON
|
2021-04-05 04:18:45 +00:00
|
|
|
- make -j4
|
|
|
|
- ctest -V -j4
|
2021-04-01 05:50:10 +00:00
|
|
|
|
|
|
|
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
|
2021-04-07 00:36:11 +00:00
|
|
|
- export TRAVIS_BRANCH=$DRONE_REPO_BRANCH
|
2021-04-14 11:03:27 +00:00
|
|
|
- export TRAVIS_JOB_ID=$DRONE_BUILD_NUMBER
|
2021-04-01 05:50:10 +00:00
|
|
|
- apt-get -y update
|
2021-04-17 09:28:43 +00:00
|
|
|
- apt-get -y install libboost-all-dev doxygen mkdocs graphviz zlib1g-dev gcc clang make cmake python3 python3-pip git openssl libssl-dev
|
2021-10-06 10:34:37 +00:00
|
|
|
- pip3 install mkdocs-material mkdocs-redirects pyyaml --no-input
|
2021-09-29 02:23:20 +00:00
|
|
|
- git clone https://github.com/CrowCpp/cpp-coveralls.git
|
|
|
|
- cd cpp-coveralls
|
|
|
|
- pip3 install . --no-input
|
|
|
|
- cd ..
|
2021-04-01 05:50:10 +00:00
|
|
|
- export CC=/usr/bin/gcc
|
|
|
|
- export CXX=/usr/bin/g++
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2021-09-28 19:03:56 +00:00
|
|
|
- cmake .. -DCROW_ENABLE_COMPRESSION=ON -DCROW_ENABLE_SSL=ON -DCROW_AMALGAMATE=ON
|
2021-04-05 04:18:45 +00:00
|
|
|
- make -j4
|
|
|
|
- ctest -V -j4
|
2021-04-01 05:50:10 +00:00
|
|
|
- cd ..
|
2021-09-30 01:50:37 +00:00
|
|
|
- coveralls --verbose --exclude-pattern .*/http_parser_merged.h --exclude-pattern .*/TinySHA1.hpp
|
2021-04-01 05:50:10 +00:00
|
|
|
- export CC=/usr/bin/clang
|
|
|
|
- export CXX=/usr/bin/clang++
|
|
|
|
- mkdir build-clang
|
|
|
|
- cd build-clang
|
2021-09-28 19:03:56 +00:00
|
|
|
- cmake .. -DCROW_ENABLE_COMPRESSION=ON -DCROW_ENABLE_SSL=ON -DCROW_AMALGAMATE=ON
|
2021-04-05 04:18:45 +00:00
|
|
|
- make -j4
|
|
|
|
- ctest -V -j4
|
2021-04-01 05:50:10 +00:00
|
|
|
- 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
|
2021-04-17 09:28:43 +00:00
|
|
|
- apt-get -y install libboost-all-dev zlib1g-dev gcc clang make cmake python3 openssl libssl-dev
|
2021-04-01 05:50:10 +00:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake --version
|
2021-09-28 19:03:56 +00:00
|
|
|
- cmake .. -DCROW_ENABLE_COMPRESSION=ON -DCROW_ENABLE_SSL=ON -DCROW_AMALGAMATE=ON
|
2021-04-05 04:18:45 +00:00
|
|
|
- make -j4
|
|
|
|
- ctest -V -j4
|
2021-04-01 05:50:10 +00:00
|
|
|
- cd ..
|
|
|
|
- export CC=/usr/bin/clang
|
|
|
|
- export CXX=/usr/bin/clang++
|
|
|
|
- mkdir build-clang
|
|
|
|
- cd build-clang
|
2021-09-28 19:03:56 +00:00
|
|
|
- cmake .. -DCROW_ENABLE_COMPRESSION=ON -DCROW_ENABLE_SSL=ON -DCROW_AMALGAMATE=ON
|
2021-04-05 04:18:45 +00:00
|
|
|
- make -j4
|
|
|
|
- ctest -V -j4
|
2021-04-01 05:50:10 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|