2019-03-30 16:05:43 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
2020-05-26 00:12:54 +00:00
|
|
|
build_stable:
|
2019-03-30 16:05:43 +00:00
|
|
|
docker:
|
|
|
|
- image: debian:stretch
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- run:
|
2020-05-01 19:06:41 +00:00
|
|
|
name: Install required tools
|
|
|
|
command: 'apt-get update && apt-get install -y gcc g++ git cmake'
|
2019-03-30 16:14:50 +00:00
|
|
|
- run:
|
2020-05-01 19:06:41 +00:00
|
|
|
name: Show versions
|
2020-05-01 19:01:47 +00:00
|
|
|
command: 'g++ --version ; uname -a; cmake --version'
|
|
|
|
- run:
|
|
|
|
name: Run CMake
|
|
|
|
command: 'mkdir build ; cd build ; cmake ..'
|
2019-03-30 16:14:50 +00:00
|
|
|
- run:
|
|
|
|
name: Compile
|
|
|
|
command: 'cmake --build build'
|
2019-03-30 16:05:43 +00:00
|
|
|
- run:
|
2019-03-30 16:14:50 +00:00
|
|
|
name: Execute test suite
|
2020-05-01 13:22:18 +00:00
|
|
|
command: 'cd build ; ctest --output-on-failure -j 2'
|
2020-05-26 00:14:49 +00:00
|
|
|
|
|
|
|
build_bleeding_edge:
|
|
|
|
docker:
|
|
|
|
- image: archlinux
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Install required tools
|
2020-05-26 00:43:15 +00:00
|
|
|
command: 'pacman -Sy --noconfirm base base-devel gcc git cmake'
|
2020-05-26 00:14:49 +00:00
|
|
|
- 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
|
2020-05-26 00:17:02 +00:00
|
|
|
command: 'cd build ; ctest --output-on-failure -j 2'
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build_and_test_all:
|
|
|
|
jobs:
|
|
|
|
- build_stable
|
|
|
|
- build_bleeding_edge
|