json/.circleci/config.yml

55 lines
1.3 KiB
YAML
Raw Normal View History

2019-03-30 19:05:43 +03:00
version: 2
jobs:
build_stable:
2019-03-30 19:05:43 +03:00
docker:
- image: debian:stretch
steps:
- checkout
- run:
2020-05-01 22:06:41 +03:00
name: Install required tools
command: 'apt-get update && apt-get install -y gcc g++ git cmake'
2019-03-30 19:14:50 +03:00
- run:
2020-05-01 22:06:41 +03:00
name: Show versions
2020-05-01 22:01:47 +03:00
command: 'g++ --version ; uname -a; cmake --version'
- run:
name: Run CMake
command: 'mkdir build ; cd build ; cmake ..'
2019-03-30 19:14:50 +03:00
- run:
name: Compile
command: 'cmake --build build'
2019-03-30 19:05:43 +03:00
- run:
2019-03-30 19:14:50 +03:00
name: Execute test suite
2020-05-01 16:22:18 +03: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 -S --noconfirm gcc git cmake'
- run:
name: Show versions
command: 'g++ --version ; uname -a; cmake --version'
- run:
name: Run CMake
command: 'mkdir build ; cd build ; cmake ..'
- 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