terminal/.gitlab-ci.yml

78 lines
1.8 KiB
YAML
Raw Normal View History

2019-11-01 12:33:42 +01:00
---
image: samueldebruyn/debian-git:latest
stages:
- style
- test
- build
clang_tidy:
image: joethei/clang_tidy
2019-11-06 18:39:21 +01:00
stage: style
2019-11-01 12:33:42 +01:00
tags:
2019-11-06 18:39:21 +01:00
- docker-ci
2019-11-01 12:33:42 +01:00
script:
2019-12-05 08:45:01 +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-01 12:33:42 +01:00
make_test:
stage: test
tags:
- docker-ci
script:
- apt-get update
2019-11-07 13:53:41 +01:00
- apt-get install -y g++ make cmake clang-tidy
2019-11-06 18:39:21 +01:00
- mkdir current
2019-11-07 12:58:13 +01:00
- ls | grep -v current | xargs mv -t current
2019-11-07 13:58:36 +01:00
- git clone https://github.com/catchorg/Catch2.git
- cd Catch2
- cmake -Bbuild -H. -DBUILD_TESTING=OFF
2019-11-07 14:02:46 +01:00
- cmake --build build/ --target install
2019-11-07 13:58:36 +01:00
- cd ..
2019-11-03 17:53:35 +01:00
- 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
2019-11-06 18:39:21 +01:00
- cd ../../current
2019-11-01 12:33:42 +01:00
- mkdir build
- cd build
- cmake ..
- make
- make test
2019-11-03 17:53:35 +01:00
cmake_build:
stage: build
tags:
- docker-ci
script:
2019-11-06 18:39:21 +01:00
- apt-get update
2019-11-07 13:53:41 +01:00
- apt-get install -y g++ make cmake clang-tidy
2019-11-06 18:39:21 +01:00
- mkdir current
2019-11-07 13:58:36 +01:00
- ls | grep -v current | xargs mv -t current
- git clone https://github.com/catchorg/Catch2.git
- cd Catch2
- cmake -Bbuild -H. -DBUILD_TESTING=OFF
2019-11-07 14:02:46 +01:00
- cmake --build build/ --target install
2019-11-07 13:58:36 +01:00
- cd ..
2019-11-06 18:39:21 +01:00
- 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:45:01 +01:00
- make