mirror of
https://github.com/nlohmann/json.git
synced 2024-12-18 16:57:51 +08:00
25 lines
615 B
YAML
25 lines
615 B
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: debian:stretch
|
|
|
|
steps:
|
|
- checkout
|
|
|
|
- run:
|
|
name: Install required tools
|
|
command: 'apt-get update && apt-get install -y gcc g++ 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'
|