json/.circleci/config.yml

49 lines
1.1 KiB
YAML
Raw Normal View History

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