json/.circleci/config.yml

28 lines
756 B
YAML
Raw Normal View History

2019-03-31 00:05:43 +08:00
version: 2
jobs:
build:
docker:
- image: debian:stretch
steps:
- checkout
- run:
2019-03-31 00:14:50 +08: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:
name: Install CMake and Ninja
command: 'apt-get update && sudo apt-get install -y cmake ninja-build'
2019-03-31 00:14:50 +08:00
- run:
name: Create build files
command: 'mkdir build ; cd build ; cmake .. -GNinja'
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
command: 'cd build ; ctest -j 10'