Commit 73c6986d authored by Michaël Roynard's avatar Michaël Roynard

Conan artifactory integration

parent bc11049a
Pipeline #2083 failed with stage
in 1 minute and 31 seconds
variables:
CC: "gcc" # eg. gcc or clang
CXX: "g++" # eg. g++ or clang++
RELEASE_TYPE: "Release" # default release type
CONAN_PROFILE: "gcc-release" # default profile to give to conan install
CMAKE_GENERATOR: "-G Ninja" # include -G if defined
BUILD_DIRECTORY: "build-in-docker" # build directory name
SOURCE_DIRECTORY: ".." # where cmake search source files from the build directory
TARGET: "check" # target to invoke
CLEAN: "OFF" # whether to rm -rf * in build directory before running cmake
TESTS: "ON" # build and run unit tests
CC: "gcc" # eg. gcc or clang
CXX: "g++" # eg. g++ or clang++
RELEASE_TYPE: "Release" # default release type
CONAN_PROFILE: "gcc-release" # profile to use with conan
CONAN_REMOTE_NAME: "dutiona-lrde" # Conan remote name
CONAN_REMOTE_URL: "https://api.bintray.com/conan/dutiona/lrde" # Conan remote name
CONAN_USER: "dutiona" # Conan user name
CONAN_API_KEY: "e2a665548385e82bf1ecbb4739d3582b83b8235f" # Conan API key on public bintray repositories
NAME: "gtest-constexpr-ext" # Conan package name
TAG: "stable" # Conan tag
VERSION: "0.1" # Version to build
CMAKE_GENERATOR: "-G Ninja" # include -G if defined
BUILD_DIRECTORY: "build-in-docker" # build directory name
SOURCE_DIRECTORY: ".." # where cmake search source files from the build directory
TARGET: "check" # target to invoke
CLEAN: "OFF" # whether to rm -rf * in build directory before running cmake
TESTS: "ON" # build and run unit tests
stages:
- build
......@@ -26,6 +33,9 @@ stages:
- mkdir -p $BUILD_DIRECTORY
- cd $BUILD_DIRECTORY
- if [ "$CLEAN" == "ON" ]; then rm -rf ./*; fi
- conan remote add $CONAN_REMOTE_NAME $CONAN_REMOTE_URL
- conan user -p $CONAN_API_KEY -r $CONAN_REMOTE_NAME $CONAN_USER
- conan remote list
- conan install ..
--build missing
-pr $CONAN_PROFILE
......@@ -35,6 +45,15 @@ stages:
- cmake --build .
--target $TARGET
--config $RELEASE_TYPE
- cd ..
- conan create
--build missing
-pr $CONAN_PROFILE
. $NAME/$VERSION@$CONAN_USER/$TAG-$CONAN_PROFILE
- conan upload
--all
-r $CONAN_REMOTE_NAME
$NAME/$VERSION@$CONAN_USER/$TAG-$CONAN_PROFILE
distcheck-linux-gcc-release:
<<: *distcheck-basic-linux
......
......@@ -65,5 +65,6 @@
"codecvt": "cpp",
"algorithm": "cpp",
"__nullptr": "cpp"
}
},
"python.pythonPath": "${workspaceFolder}/venv/bin/python"
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment