summaryrefslogtreecommitdiff
path: root/.gitlab
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-05-28 12:44:01 -0600
committermo khan <mo.khan@gmail.com>2020-05-29 00:57:47 -0600
commita8d9eac2cbe0c7863fc43d04d4a5be1c239be681 (patch)
treea4a431995d918b63e33d3dc5f1ad83fba00041a4 /.gitlab
parent0b976fcffe0a9b8e80587adb076bcdf279c9331c (diff)
Allow custom conan configuration
* Use git fetch with a depth of 1 * Control Conan environment via environment variables * Allow specifying a custom CONAN_LOGIN_USERNAME and CONAN_PASSWORD * Specify a default CONAN_CACERT_PATH to point the system cert file * Tie CONAN_LOGGING_LEVEL to LOG_LEVEL * Tag and skip offline environment tests because it was shutdown * Add CHANGELOG entry
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/build.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab/build.yml b/.gitlab/build.yml
index 772bde3..a2b6fdb 100644
--- a/.gitlab/build.yml
+++ b/.gitlab/build.yml
@@ -1,3 +1,19 @@
+build-conan-pkg:
+ image: conanio/gcc7
+ stage: build
+ script:
+ - cd spec/fixtures/c/conan/example-package/
+ - conan remote add gitlab $CI_API_V4_URL/packages/conan True
+ - export ESCAPED_NAMESPACE="${CI_PROJECT_NAMESPACE//\//+}"
+ - export PACKAGE_NAME=$ESCAPED_NAMESPACE+$CI_PROJECT_NAME/stable
+ - echo $PACKAGE_NAME
+ - conan create . "$PACKAGE_NAME"
+ - conan upload "example/0.1@$PACKAGE_NAME" --all --remote=gitlab
+ variables:
+ CONAN_LOGIN_USERNAME: 'ci_user'
+ CONAN_PASSWORD: $CI_JOB_TOKEN
+ allow_failure: true
+
build-docker-image:
image: docker:stable
interruptible: true