diff --git a/.circleci/config.yml b/.circleci/config.yml index d6a9ed4..d229cfa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -191,6 +191,7 @@ aliases: command: cargo build --release --no-default-features --features="${FEATURES}" -p plume-cli || cargo build --release --no-default-features --features="${FEATURES}" -p plume-cli - *save_cache_release - run: script/generate_artifact.sh + - run: script/upload_test_environment.sh - store_artifacts: path: plume.tar.gz destination: plume.tar.gz diff --git a/script/upload_test_environment.sh b/script/upload_test_environment.sh new file mode 100755 index 0000000..5f4d946 --- /dev/null +++ b/script/upload_test_environment.sh @@ -0,0 +1,7 @@ +#!/bin/bash +pr_id=$(basename "$CI_PULL_REQUEST") +[ -z "$pr_id" ] && exit +backend="$FEATURES" +password="$JOINPLUME_PASSWORD" + +curl -T plume.tar.gz "https://circleci:$password@joinplu.me/upload_pr/$backend/$pr_id.tar.gz"