From 22f547412a05cfa69a63aa3ca321771f9d6ce289 Mon Sep 17 00:00:00 2001 From: "Alejandro R. Mosteo" Date: Thu, 16 May 2019 17:59:55 +0200 Subject: [PATCH 1/3] trigger checks in alire-crates-ci --- shippable.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 shippable.yml diff --git a/shippable.yml b/shippable.yml new file mode 100644 index 00000000..f57c494c --- /dev/null +++ b/shippable.yml @@ -0,0 +1,34 @@ +language: none # Ada + +integrations: + notifications: + - integrationName: email + type: email + on_success: change + on_failure: change + on_cancel: never + +branches: + only: + - master + - stable + +build: + ci: + - shipctl put_resource_state branchInfo branch "none"; fi + - if [ "$BRANCH" == "master" ] && [ "$IS_PULL_REQUEST" == false ]; then shipctl put_resource_state branchInfo BRANCH $BRANCH; fi + - if [ "$BRANCH" == "stable" ] && [ "$IS_PULL_REQUEST" == false ]; then shipctl put_resource_state branchInfo BRANCH $BRANCH; fi + +# Already defined in alire.git +# resources: +# - name: branchInfo +# type: params +# versionTemplate: +# params: +# BRANCH: "none" + +jobs: + - name: alire-index_runCI + type: runCI + steps: + - OUT: branchInfo From ec1d297653f02ee8490023f52aef5c181e386186 Mon Sep 17 00:00:00 2001 From: "Alejandro R. Mosteo" Date: Thu, 16 May 2019 18:04:23 +0200 Subject: [PATCH 2/3] disable duplicate resource definition --- shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shippable.yml b/shippable.yml index f57c494c..46c9311e 100644 --- a/shippable.yml +++ b/shippable.yml @@ -19,7 +19,7 @@ build: - if [ "$BRANCH" == "master" ] && [ "$IS_PULL_REQUEST" == false ]; then shipctl put_resource_state branchInfo BRANCH $BRANCH; fi - if [ "$BRANCH" == "stable" ] && [ "$IS_PULL_REQUEST" == false ]; then shipctl put_resource_state branchInfo BRANCH $BRANCH; fi -# Already defined in alire.git +# Already defined in alire.git: # resources: # - name: branchInfo # type: params From eacf2ee82f7fafd8255b67ee6ae4262716880eb9 Mon Sep 17 00:00:00 2001 From: "Alejandro R. Mosteo" Date: Thu, 16 May 2019 18:07:32 +0200 Subject: [PATCH 3/3] simplify logic in shippable.yml --- shippable.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shippable.yml b/shippable.yml index 46c9311e..1878f4ce 100644 --- a/shippable.yml +++ b/shippable.yml @@ -16,8 +16,7 @@ branches: build: ci: - shipctl put_resource_state branchInfo branch "none"; fi - - if [ "$BRANCH" == "master" ] && [ "$IS_PULL_REQUEST" == false ]; then shipctl put_resource_state branchInfo BRANCH $BRANCH; fi - - if [ "$BRANCH" == "stable" ] && [ "$IS_PULL_REQUEST" == false ]; then shipctl put_resource_state branchInfo BRANCH $BRANCH; fi + - if [ "$IS_PULL_REQUEST" == false ]; then shipctl put_resource_state branchInfo BRANCH $BRANCH; fi # Already defined in alire.git: # resources: