Trigger benchmark build after master branch builds complete

This commit is contained in:
Brandon Fish 2019-03-17 14:42:20 -05:00
parent cade9a666f
commit d7778245a7

View File

@ -9,7 +9,7 @@ jobs:
- restore_cache: - restore_cache:
keys: keys:
- v6-lint-{{ arch }}-{{ checksum "Cargo.lock" }} - v6-lint-{{ arch }}-{{ checksum "Cargo.lock" }}
- run: - run:
name: Install dependencies name: Install dependencies
command: | command: |
sudo apt-get install -y cmake sudo apt-get install -y cmake
@ -41,7 +41,7 @@ jobs:
- restore_cache: - restore_cache:
keys: keys:
- v6-test-cargo-cache-linux-{{ arch }}-{{ checksum "Cargo.lock" }} - v6-test-cargo-cache-linux-{{ arch }}-{{ checksum "Cargo.lock" }}
- run: - run:
name: Install dependencies name: Install dependencies
command: | command: |
sudo apt-get install -y cmake sudo apt-get install -y cmake
@ -140,7 +140,7 @@ jobs:
- restore_cache: - restore_cache:
keys: keys:
- v6-cargo-cache-linux-{{ arch }}-{{ checksum "Cargo.lock" }} - v6-cargo-cache-linux-{{ arch }}-{{ checksum "Cargo.lock" }}
- run: - run:
name: Install dependencies name: Install dependencies
command: | command: |
sudo apt-get install -y cmake sudo apt-get install -y cmake
@ -260,7 +260,7 @@ jobs:
- restore_cache: - restore_cache:
keys: keys:
- v6-test-cargo-cache-linux-{{ arch }}-{{ checksum "Cargo.lock" }}-nightly - v6-test-cargo-cache-linux-{{ arch }}-{{ checksum "Cargo.lock" }}-nightly
- run: - run:
name: Install dependencies name: Install dependencies
command: | command: |
sudo apt-get install -y cmake 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}" # echo "Versions don't match. Wasmer output version (wasmer --version) is ${VERSION} while Git tag is ${VERSION_TAG}"
# exit 1 # exit 1
#fi #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: workflows:
version: 2 version: 2
@ -345,3 +361,11 @@ workflows:
filters: filters:
branches: branches:
only: master only: master
- trigger-benchmark-build:
requires:
- test
- test-and-build
- lint
filters:
branches:
only: master