From d7778245a7d47fb958f17b0f2dce8cf777ccc658 Mon Sep 17 00:00:00 2001 From: Brandon Fish Date: Sun, 17 Mar 2019 14:42:20 -0500 Subject: [PATCH 1/3] Trigger benchmark build after master branch builds complete --- .circleci/config.yml | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1a462b680..3a1a65184 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,7 +9,7 @@ jobs: - restore_cache: keys: - v6-lint-{{ arch }}-{{ checksum "Cargo.lock" }} - - run: + - run: name: Install dependencies command: | sudo apt-get install -y cmake @@ -41,7 +41,7 @@ jobs: - restore_cache: keys: - v6-test-cargo-cache-linux-{{ arch }}-{{ checksum "Cargo.lock" }} - - run: + - run: name: Install dependencies command: | sudo apt-get install -y cmake @@ -140,7 +140,7 @@ jobs: - restore_cache: keys: - v6-cargo-cache-linux-{{ arch }}-{{ checksum "Cargo.lock" }} - - run: + - run: name: Install dependencies command: | sudo apt-get install -y cmake @@ -260,7 +260,7 @@ jobs: - restore_cache: keys: - v6-test-cargo-cache-linux-{{ arch }}-{{ checksum "Cargo.lock" }}-nightly - - run: + - run: name: Install dependencies command: | sudo apt-get install -y cmake @@ -303,6 +303,22 @@ jobs: # echo "Versions don't match. Wasmer output version (wasmer --version) is ${VERSION} while Git tag is ${VERSION_TAG}" # exit 1 #fi + trigger-benchmark-build: + docker: + - image: circleci/classic:latest + steps: + - run: + name: "Trigger Benchmark Build" + command: | + if [[ -z "${CIRCLE_API_USER_TOKEN}" ]]; then + echo "CIRCLE_API_USER_TOKEN environment variable not set" + exit 1 + else + echo "Triggering benchmark build" + curl -u ${CIRCLE_API_USER_TOKEN} \ + -d build_parameters[CIRCLE_JOB]=bench \ + https://circleci.com/api/v1.1/project/github/wasmerio/wasmer-bench/tree/master + fi workflows: version: 2 @@ -345,3 +361,11 @@ workflows: filters: branches: only: master + - trigger-benchmark-build: + requires: + - test + - test-and-build + - lint + filters: + branches: + only: master From 560619793a4b31409f1c7cce0537e7b995ba36e5 Mon Sep 17 00:00:00 2001 From: Brandon Fish Date: Sun, 17 Mar 2019 14:49:05 -0500 Subject: [PATCH 2/3] Remove dependency on test --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3a1a65184..2062b88fb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -363,7 +363,6 @@ workflows: only: master - trigger-benchmark-build: requires: - - test - test-and-build - lint filters: From b18619cd662bbed039baefc6d7de1c5e5a7a721d Mon Sep 17 00:00:00 2001 From: Brandon Fish Date: Mon, 18 Mar 2019 19:56:48 -0500 Subject: [PATCH 3/3] Update circleci benchmark build image --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2062b88fb..b6b65800e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -305,7 +305,7 @@ jobs: #fi trigger-benchmark-build: docker: - - image: circleci/classic:latest + - image: circleci/rust:latest steps: - run: name: "Trigger Benchmark Build"