diff options
| author | 2020-08-01 21:24:46 +0200 | |
|---|---|---|
| committer | 2020-08-01 19:35:02 +0000 | |
| commit | f3bb14ea85da339f7661a4032a0238b2dc54e1fb (patch) | |
| tree | 3e16a892fb7edfb93ebcfb22a1bb410cd9a9f98b | |
| parent | 591fbbd71b10a5f086fab622f7dfe43f3a8adcb6 (diff) | |
| download | OneRoll-f3bb14ea85da339f7661a4032a0238b2dc54e1fb.tar.gz OneRoll-f3bb14ea85da339f7661a4032a0238b2dc54e1fb.zip | |
update ci
| -rw-r--r-- | .gitlab-ci.yml | 62 |
1 files changed, 52 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index df19709..e0bd22d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,17 +1,59 @@ -image: gcc +cppcheck: + image: ubuntu:bionic + before_script: + - apt update + - apt install -y --no-install-recommands cppcheck=1.82-1 doxygen clang clang-tools-extra + - cppcheck --version + script: + - cppcheck ./*.cpp --verbose --enable=all --inconclusive -- -build: - stage: build + +clang-tidy: + image: ubuntu:bionic before_script: - - apt update && apt -y install make autoconf cmake qt5 + - apt update + - apt install -y --no-install-recommands clang clang-tools-extra + - clang-tidy --version script: - - cmake - - make + - clang-tidy -warnings-as-errors="*" -checks="-*,clang-analyze" + + +doxygen: + image: ubuntu:bionic + before_script: + - apt update + - apt install -y --no-install-recommands doxygen + - doxygen --version + - mkdir -p build/docs + script: + - doxygen docs/Doxyfile artifacts: paths: - - mybinary + - build/docs/html + -# run tests using the binary built before -test: - stage: test + + + + +build: + image: gcc +#include: + #- https://invent.kde.org/sysadmin/ci-tooling/raw/master/invent/ci-before.yml + #- https://invent.kde.org/sysadmin/ci-tooling/raw/master/invent/ci-applications-linux.yml + stage: build + before_script: + - apt update && apt -y install make cmake qt5-default libqt5network5 libqt5test5 libqt5core5a script: + - mkdir -p build && cd build + - cmake .. -DCMAKE_BUILD_TYPE=Release + - cmake --build . + artifacts: + paths: + - build/libdiceparser.so.1.9.0 + - build/cli/bin/dice + # run tests using the binary built before + test: + stage: test + script: + - make test |