home flag needs to be applied for whole script

This commit is contained in:
Lukas Heiligenbrunner 2020-10-31 16:59:10 +01:00
parent be8299e294
commit c904c0701c

View File

@ -14,14 +14,16 @@ cache:
conan:
stage: conan
script:
- export CONAN_USER_HOME=$PWD/.conan #define .conan folder to be inside of project
- mkdir -p 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_USER_HOME=$PWD/.conan conan install . --build=missing -g cmake -if build
- cmake -S . -B build -D WinBuild=OFF -D GUI=OFF
- conan profile update settings.compiler.libcxx=libstdc++11 default # new c++ abi
- CONAN_SYSREQUIRES_MODE=enabled conan install . --build=missing -g cmake -if build
- cmake -S . -B build -D WinBuild=OFF -D GUI=OFF #cmake project
- cd build
- make
- make #build
artifacts:
paths:
- build/bin/