add cleanup job

This commit is contained in:
Lukas Heiligenbrunner 2020-10-16 19:16:41 +02:00
parent 2e3e4986f6
commit 05f3600613

View File

@ -3,6 +3,7 @@ stages:
- cmake - cmake
- build - build
- post - post
- cleanup
image: conanio/gcc9:latest image: conanio/gcc9:latest
@ -19,6 +20,7 @@ conan:
- conan user lukas-heiligenbrunner -r bintray -p $CONAN_KEY - conan user lukas-heiligenbrunner -r bintray -p $CONAN_KEY
- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan - conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
- CONAN_SYSREQUIRES_MODE=enabled conan install .. --build=missing - CONAN_SYSREQUIRES_MODE=enabled conan install .. --build=missing
allow_failure: true
# Unix Build # Unix Build
cmake: cmake:
@ -26,3 +28,11 @@ cmake:
script: script:
- cd build - cd build
- cmake -S . -B ../build -D WinBuild=OFF -D GUI=OFF - cmake -S . -B ../build -D WinBuild=OFF -D GUI=OFF
allow_failure: true
cleanup:
stage: cleanup
script:
- echo "cleaning up"
after_script:
- rm -Rfv build