seperate to stages

This commit is contained in:
Lukas Heiligenbrunner 2020-10-16 19:03:05 +02:00
parent ad11f040f2
commit ed08771107

View File

@ -1,4 +1,6 @@
stages:
- prepare
- conan
- cmake
- build
- post
@ -9,16 +11,25 @@ cache:
paths:
- /home/conan/.conan/
prepare:
stage: prepare
script:
- mkdir ../checkout
- cp -Rv * ../checkout
conan:
stage: conan
script:
- mkdir ../checkout/build
- cd ../chekout/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
# Unix Build
cmake:
stage: cmake
script:
- mkdir ../build -p
- 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
- rm * -f
- CONAN_SYSREQUIRES_MODE=enabled conan install ../dynuiprefresher --build=missing
- cd ../dynuiprefresher
- cd build
- cmake -S . -B ../build -D WinBuild=OFF -D GUI=OFF