From 5073f9f439867d2e09112636a8a7c391f09af3e3 Mon Sep 17 00:00:00 2001 From: Andrew Taylor Date: Fri, 25 Oct 2019 12:06:30 -0700 Subject: [PATCH] Use Terminus CLU (#299) * Use Terminus CLU for CircleCI * Use Terminus CLU for GitLab * Exit on errors for BitBucket CLU job --- .circleci/config.yml | 6 +++++- .gitlab-ci.yml | 8 ++++++++ bitbucket-pipelines.yml | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e6a5a822e..7dcbb6fbd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -225,9 +225,13 @@ jobs: name: setup-environment-vars command: /build-tools-ci/scripts/set-environment + - run: + name: Authenticate with Terminus + command: terminus -n auth:login --machine-token="$TERMINUS_TOKEN" + - run: name: run composer lock updater - command: set -e && clu https://${GITHUB_TOKEN}:x-oauth-basic@github.com/${CI_PROJECT_USERNAME}/${CI_PROJECT_REPONAME}.git | sed -e "s/${GITHUB_TOKEN}/[REDACTED]/g" + command: set -e && terminus project:clu $TERMINUS_SITE workflows: version: 2 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3128ccc9e..54b1d3476 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,7 @@ stages: - visual-test - behat-test - cleanup +- updates before_script: - export PATH="$PATH:$CI_PROJECT_DIR/.ci/scripts" @@ -140,3 +141,10 @@ test:behat:cleanup: - master dependencies: - test:behat + +schedule:composer:update: + stage: updates + script: + - set -e && terminus project:clu $TERMINUS_SITE + only: + - schedules diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index e86c4fb3d..e4cdcb498 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -128,4 +128,4 @@ pipelines: - export CI_PROJECT_NAME=$BITBUCKET_REPO_FULL_NAME && echo $CI_PROJECT_NAME - /build-tools-ci/scripts/set-environment - terminus -n auth:login --machine-token="$TERMINUS_TOKEN" - - terminus project:clu $TERMINUS_SITE + - set -e && terminus project:clu $TERMINUS_SITE