Commit 2672a35a authored by Michaël Roynard's avatar Michaël Roynard

Switch to using conan profiles

parent cd6cc860
Pipeline #1964 failed with stage
in 33 seconds
variables:
CC: "gcc" # eg. gcc or clang
CXX: "g++" # eg. g++ or clang++
RELEASE_TYPE: "Release" # default release type
COMPILER_VERSION: "7.3" # version of the compiler
COMPILER_LIBCXX: "libstdc++11" # libcxx with which we link against
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
......@@ -20,18 +17,12 @@ stages:
image: mroynard/ubuntu-toolset:stable
script:
- set -e
- export CC=$CC
- export CXX=$CXX
- $CXX --version
- mkdir -p $BUILD_DIRECTORY
- cd $BUILD_DIRECTORY
- if [ "$CLEAN" == "ON" ]; then rm -rf ./*; fi
- conan install ..
--build missing
-s compiler=$CC
-s compiler.version=$COMPILER_VERSION
-s compiler.libcxx=$COMPILER_LIBCXX
-s build_type=$RELEASE_TYPE
-pr $CONAN_PROFILE
- cmake $CMAKE_GENERATOR
-DWITH_TESTS=$TESTS
$SOURCE_DIRECTORY
......@@ -42,23 +33,21 @@ stages:
distcheck-linux-gcc-release:
<<: *distcheck-basic-linux
variables:
CONAN_PROFILE: "gcc-release"
distcheck-linux-clang-release:
<<: *distcheck-basic-linux
variables:
CC: "clang"
CXX: "clang++"
COMPILER_VERSION: "6.0"
CONAN_PROFILE: "clang-release"
distcheck-linux-gcc-debug:
<<: *distcheck-basic-linux
variables:
CONAN_PROFILE: "gcc-debug"
RELEASE_TYPE: "Debug"
distcheck-linux-clang-debug:
<<: *distcheck-basic-linux
variables:
CONAN_PROFILE: "clang-debug"
RELEASE_TYPE: "Debug"
CC: "clang"
CXX: "clang++"
COMPILER_VERSION: "6.0"
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