no files outside build dir allowed

This commit is contained in:
Lukas Heiligenbrunner 2020-10-16 19:11:17 +02:00
parent 346875312b
commit 2e3e4986f6

View File

@ -1,5 +1,4 @@
stages:
- prepare
- conan
- cmake
- build
@ -11,31 +10,19 @@ cache:
paths:
- /home/conan/.conan/
prepare:
stage: prepare
script:
- mkdir ../checkout
- cp -Rv * ../checkout
artifacts:
paths:
- ../checkout/
conan:
stage: conan
script:
- mkdir ../checkout/build
- cd ../chekout/build
- mkdir build
- cd build
- conan remote add bintray https://api.bintray.com/conan/lheili/LibConfig
- conan user lukas-heiligenbrunner -r bintray -p $CONAN_KEY
- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
- CONAN_SYSREQUIRES_MODE=enabled conan install .. --build=missing
artifacts:
paths:
- ../checkout/
# Unix Build
cmake:
stage: cmake
script:
- cd ../checkout/build
- cd build
- cmake -S . -B ../build -D WinBuild=OFF -D GUI=OFF