library/.gitlab-ci.yml

52 lines
959 B
YAML
Raw Normal View History

2019-11-07 14:58:02 +01:00
---
image: samueldebruyn/debian-git:latest
stages:
- style
- test
- build
clang_tidy:
image: joethei/clang_tidy
2019-11-07 14:58:02 +01:00
stage: style
tags:
- docker-ci
script:
- sh .ci/clang-tidy.sh;
make_test:
stage: test
tags:
- docker-ci
script:
- apt-get update
2020-01-08 17:36:56 +01:00
- apt-get install -y clang make cmake clang-tidy
2019-11-07 14:58:02 +01:00
- git clone https://github.com/catchorg/Catch2.git
- cd Catch2
- cmake -Bbuild -H. -DBUILD_TESTING=OFF
- cmake --build build/ --target install
- cd ..
- mkdir build
- cd build
- cmake ..
- make
- make test
cmake_build:
stage: build
tags:
- docker-ci
script:
- apt-get update
2020-01-08 17:36:56 +01:00
- apt-get install -y clang make cmake clang-tidy
2019-11-07 14:58:02 +01:00
- git clone https://github.com/catchorg/Catch2.git
- cd Catch2
- cmake -Bbuild -H. -DBUILD_TESTING=OFF
- cmake --build build/ --target install
- cd ..
- mkdir build
- cd build
- cmake ..
- make