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