2019-03-30 16:05:43 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
|
|
|
- image: debian:stretch
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- run:
|
2019-03-30 16:14:50 +00:00
|
|
|
name: Install sudo
|
|
|
|
command: 'apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/*'
|
|
|
|
- run:
|
|
|
|
name: Install GCC
|
2020-05-01 19:01:47 +00:00
|
|
|
command: 'apt-get update && apt-get install -y gcc g++'
|
2019-03-30 16:14:50 +00:00
|
|
|
- run:
|
2020-05-01 19:01:47 +00:00
|
|
|
name: Install Git
|
|
|
|
command: 'apt-get update && apt-get install -y git'
|
2019-03-30 16:14:50 +00:00
|
|
|
- run:
|
2020-05-01 19:01:47 +00:00
|
|
|
name: Install CMake
|
|
|
|
command: 'apt-get update && apt-get install -y cmake'
|
2019-11-03 19:27:07 +00:00
|
|
|
- run:
|
|
|
|
name: 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'
|