2019-11-07 14:47:36 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
image: samueldebruyn/debian-git:latest
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- style
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
|
|
|
|
|
|
|
|
clang_tidy:
|
2019-11-12 12:06:41 +01:00
|
|
|
image: joethei/clang_tidy
|
2019-11-07 14:47:36 +01:00
|
|
|
stage: style
|
|
|
|
tags:
|
|
|
|
- docker-ci
|
|
|
|
script:
|
2019-12-05 08:46:28 +01:00
|
|
|
- mkdir current
|
|
|
|
- ls -d .[!.]* | grep -v current | xargs mv -t current
|
|
|
|
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.repo.digitech.hs-emden-leer.de/link/projekte/ws19/vkvm-new/library.git
|
|
|
|
- mkdir library/build
|
|
|
|
- cd library/build
|
|
|
|
- cmake ..
|
|
|
|
- make
|
|
|
|
- cd ../../current/.ci
|
|
|
|
- sh clang-tidy.sh
|
|
|
|
|
2019-11-07 14:47:36 +01:00
|
|
|
|
|
|
|
make_test:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- docker-ci
|
|
|
|
script:
|
|
|
|
- apt-get update
|
2020-01-08 17:33:34 +01:00
|
|
|
- apt-get install -y clang make cmake clang-tidy
|
2019-11-07 14:47:36 +01:00
|
|
|
- mkdir current
|
|
|
|
- ls | grep -v current | xargs mv -t current
|
|
|
|
- git clone https://github.com/catchorg/Catch2.git
|
|
|
|
- cd Catch2
|
|
|
|
- cmake -Bbuild -H. -DBUILD_TESTING=OFF
|
|
|
|
- cmake --build build/ --target install
|
|
|
|
- cd ..
|
|
|
|
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.repo.digitech.hs-emden-leer.de/link/projekte/ws19/vkvm-new/library.git
|
|
|
|
- mkdir library/build
|
|
|
|
- cd library/build
|
|
|
|
- cmake ..
|
|
|
|
- make
|
|
|
|
- cd ../../current
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake ..
|
|
|
|
- make
|
|
|
|
- make test
|
|
|
|
|
|
|
|
cmake_build:
|
|
|
|
stage: build
|
|
|
|
tags:
|
|
|
|
- docker-ci
|
|
|
|
script:
|
|
|
|
- apt-get update
|
2020-01-08 17:33:34 +01:00
|
|
|
- apt-get install -y clang make cmake clang-tidy
|
2019-11-07 14:47:36 +01:00
|
|
|
- mkdir current
|
|
|
|
- ls | grep -v current | xargs mv -t current
|
|
|
|
- git clone https://github.com/catchorg/Catch2.git
|
|
|
|
- cd Catch2
|
|
|
|
- cmake -Bbuild -H. -DBUILD_TESTING=OFF
|
|
|
|
- cmake --build build/ --target install
|
|
|
|
- cd ..
|
|
|
|
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.repo.digitech.hs-emden-leer.de/link/projekte/ws19/vkvm-new/library.git
|
|
|
|
- mkdir library/build
|
|
|
|
- cd library/build
|
|
|
|
- cmake ..
|
|
|
|
- make
|
|
|
|
- cd ../../current
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake ..
|
2019-12-05 08:46:28 +01:00
|
|
|
- make
|