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: stages:
- prepare
- conan - conan
- cmake - cmake
- build - build
@ -11,31 +10,19 @@ cache:
paths: paths:
- /home/conan/.conan/ - /home/conan/.conan/
prepare:
stage: prepare
script:
- mkdir ../checkout
- cp -Rv * ../checkout
artifacts:
paths:
- ../checkout/
conan: conan:
stage: conan stage: conan
script: script:
- mkdir ../checkout/build - mkdir build
- cd ../chekout/build - cd build
- conan remote add bintray https://api.bintray.com/conan/lheili/LibConfig - conan remote add bintray https://api.bintray.com/conan/lheili/LibConfig
- 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
artifacts:
paths:
- ../checkout/
# Unix Build # Unix Build
cmake: cmake:
stage: cmake stage: cmake
script: script:
- cd ../checkout/build - cd build
- cmake -S . -B ../build -D WinBuild=OFF -D GUI=OFF - cmake -S . -B ../build -D WinBuild=OFF -D GUI=OFF