2019-03-30 17:05:43 +01:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
|
|
|
- image: debian:stretch
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- run:
|
2019-03-30 17:14:50 +01:00
|
|
|
name: Install sudo
|
|
|
|
command: 'apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/*'
|
|
|
|
- run:
|
|
|
|
name: Install GCC
|
|
|
|
command: 'apt-get update && apt-get install -y gcc g++'
|
|
|
|
- run:
|
2019-03-30 17:39:50 +01:00
|
|
|
name: Install CMake
|
|
|
|
command: 'apt-get update && sudo apt-get install -y cmake'
|
2019-03-30 17:14:50 +01:00
|
|
|
- run:
|
|
|
|
name: Create build files
|
2019-03-30 17:39:50 +01:00
|
|
|
command: 'mkdir build ; cd build ; cmake ..'
|
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
|
2019-03-30 17:39:50 +01:00
|
|
|
command: 'cd build ; ctest -j 2'
|