2019-03-30 17:05:43 +01:00
|
|
|
version: 2
|
|
|
|
jobs:
|
2020-05-26 02:12:54 +02:00
|
|
|
build_stable:
|
2019-03-30 17:05:43 +01:00
|
|
|
docker:
|
|
|
|
- image: debian:stretch
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- run:
|
2020-05-01 21:06:41 +02:00
|
|
|
name: Install required tools
|
|
|
|
command: 'apt-get update && apt-get install -y gcc g++ git cmake'
|
2020-05-01 21:01:47 +02:00
|
|
|
- run:
|
|
|
|
name: Run CMake
|
2020-05-27 13:22:14 +02:00
|
|
|
command: 'mkdir build ; cd build ; cmake .. -DJSON_BuildTests=On'
|
2019-03-30 17:14:50 +01:00
|
|
|
- run:
|
|
|
|
name: Compile
|
|
|
|
command: 'cmake --build build'
|
2019-03-30 17:05:43 +01:00
|
|
|
- run:
|
2019-03-30 17:14:50 +01:00
|
|
|
name: Execute test suite
|
2020-05-01 15:22:18 +02:00
|
|
|
command: 'cd build ; ctest --output-on-failure -j 2'
|
2020-05-26 02:14:49 +02:00
|
|
|
|
|
|
|
build_bleeding_edge:
|
|
|
|
docker:
|
|
|
|
- image: archlinux
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Install required tools
|
2020-05-26 02:43:15 +02:00
|
|
|
command: 'pacman -Sy --noconfirm base base-devel gcc git cmake'
|
2020-05-26 02:14:49 +02:00
|
|
|
- run:
|
|
|
|
name: Run CMake
|
2020-05-27 13:22:14 +02:00
|
|
|
command: 'mkdir build ; cd build ; cmake .. -DJSON_BuildTests=On'
|
2020-05-26 02:14:49 +02:00
|
|
|
- run:
|
|
|
|
name: Compile
|
|
|
|
command: 'cmake --build build'
|
|
|
|
- run:
|
|
|
|
name: Execute test suite
|
2020-05-26 02:17:02 +02:00
|
|
|
command: 'cd build ; ctest --output-on-failure -j 2'
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build_and_test_all:
|
|
|
|
jobs:
|
|
|
|
- build_stable
|
2020-08-14 13:52:42 +02:00
|
|
|
branches:
|
|
|
|
ignore:
|
|
|
|
gh-pages
|
2020-05-26 02:17:02 +02:00
|
|
|
- build_bleeding_edge
|
2020-08-14 13:52:42 +02:00
|
|
|
branches:
|
|
|
|
ignore:
|
|
|
|
gh-pages
|