Commit f4903e6f authored by Michaël Roynard's avatar Michaël Roynard

Adjust CI script

parent 0cbdf32f
Pipeline #4150 failed with stage
in 1 minute and 23 seconds
variables:
CONAN_PROFILE: "gcc7" # profile to use with conan
CC: "gcc-7" # C compiler
CXX: "gcc-7" # C++ compiler
# CONAN_PUBLIC_REMOTE_NAME: "lrde-public" # Conan remote name
# CONAN_PUBLIC_REMOTE_URL: "https://artifactory.lrde.epita.fr/artifactory/api/conan/lrde-public" # Conan remote name
# CONAN_PRIVATE_REMOTE_NAME: "lrde-private" # Conan remote name
......@@ -24,10 +22,6 @@ stages:
image: mroynard/ubuntu-toolset:stable
script:
- set -e
- export CC=$CC
- export CXX=$CXX
- $CC --version
- $CXX --version
- conan remote add $CONAN_PRIVATE_REMOTE_NAME $CONAN_PRIVATE_REMOTE_URL
- conan user
-p $CONAN_API_KEY
......@@ -49,22 +43,16 @@ distcheck-package-linux-gcc7:
distcheck-package-linux-gcc8:
<<: *distcheck-basic-package-linux
variables:
CC: "gcc-8"
CXX: "g++-8"
CONAN_PROFILE: "gcc8"
distcheck-package-linux-clang6:
<<: *distcheck-basic-package-linux
variables:
CC: "clang-6.0"
CXX: "clang++-6.0"
CONAN_PROFILE: "clang6"
# distcheck-package-linux-clang7:
# <<: *distcheck-basic-package-linux
# variables:
# CC: "clang-7"
# CXX: "clang++-7"
# CONAN_PROFILE: "clang7"
distcheck-package-linux-default:
......@@ -72,10 +60,6 @@ distcheck-package-linux-default:
image: mroynard/ubuntu-toolset:stable
script:
- set -e
- export CC=$CC
- export CXX=$CXX
- $CC --version
- $CXX --version
- conan remote add $CONAN_PRIVATE_REMOTE_NAME $CONAN_PRIVATE_REMOTE_URL
- conan user
-p $CONAN_API_KEY
......@@ -83,6 +67,7 @@ distcheck-package-linux-default:
- conan remote list
- conan create
--build missing
-s compiler.
. $NAME/$VERSION@$CONAN_USER/$TAG
- conan upload
--all
......
......@@ -8,19 +8,27 @@ class GtestConstexprExt(ConanFile):
url = "https://gitlab.lrde.epita.fr/mroynard/gtest-constexpr-ext"
description = "Add macro to detect whether an expression is compile-time."
settings = "os", "compiler", "arch", "build_type", "cppstd"
options = {"shared": [True, False], "fPIC": [True, False]}
default_options = "shared=False", "fPIC=True"
options = {"shared": [True, False], "fPIC": [
True, False], "build_tests": [True, False]}
default_options = "shared=False", "fPIC=True", "build_tests=True"
generators = "cmake_find_package"
def configure(self):
if self.settings.os == "Windows":
self.options.remove("fPIC")
def source(self):
git = tools.Git()
git.clone("{}.git".format(self.url))
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
cmake.test()
if self.options.build_tests:
cmake.test()
def package(self):
self.copy("*.hpp", dst="include/gtest-constexpr-ext",
......
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