diff options
| author | bors <bors@rust-lang.org> | 2017-06-04 15:35:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-06-04 15:35:37 +0000 |
| commit | 341f4534488a3f56b8b9e188c1f4f52ed7707389 (patch) | |
| tree | 5594f2d8b85838bfab9402d20fd4874d57a089f0 | |
| parent | 0da9721ab49d80bf74208e94a891b12c4a248507 (diff) | |
| parent | d2ff798f3a67a6781755d9e1e757db630ac94c0d (diff) | |
| download | rust-341f4534488a3f56b8b9e188c1f4f52ed7707389.tar.gz rust-341f4534488a3f56b8b9e188c1f4f52ed7707389.zip | |
Auto merge of #42418 - tomprince:try-deploy, r=Mark-Simulacrum
Upload linux-x86_64 artifacts on try branch. This is an experiment to explore generating artifacts for testing with cargobmomb. See brson/cargobomb#64.
| -rw-r--r-- | .travis.yml | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 9ef759b3f80..40fecb3ee5e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,7 @@ matrix: - env: IMAGE=dist-powerpc64le-linux DEPLOY=1 - env: IMAGE=dist-s390x-linux DEPLOY=1 - env: IMAGE=dist-x86_64-freebsd DEPLOY=1 - - env: IMAGE=dist-x86_64-linux DEPLOY=1 + - env: IMAGE=dist-x86_64-linux DEPLOY=1 ALLOW_TRY=1 - env: IMAGE=dist-x86_64-musl DEPLOY=1 - env: IMAGE=dist-x86_64-netbsd DEPLOY=1 - env: IMAGE=emscripten @@ -152,8 +152,22 @@ before_script: echo "#### Disk usage before running script:"; df -h; du . | sort -nr | head -n100 + # If we are building a pull request, do the build if $ALLOW_PR == 1 + # Otherwise, do the build if we are on the auto branch, or the try branch and $ALLOW_TRY == 1 - > - if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then + if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then + if [[ "$ALLOW_PR" == "1" ]]; then + SKIP_BUILD=false; + else + SKIP_BUILD=true; + fi + elif [[ "$TRAVIS_BRANCH" == "auto" || ( "$ALLOW_TRY" == "1" && "$TRAVIS_BRANCH" == "try" ) ]]; then + SKIP_BUILD=false; + else + SKIP_BUILD=true; + fi + + if [[ "$SKIP_BUILD" == true ]]; then export RUN_SCRIPT="echo 'skipping, not a full build'"; else RUN_SCRIPT="stamp src/ci/init_repo.sh . $HOME/rustsrc"; @@ -239,6 +253,20 @@ deploy: branch: auto condition: $DEPLOY = 1 + - provider: s3 + bucket: rust-lang-ci + skip_cleanup: true + local_dir: deploy + upload_dir: rustc-builds-try + acl: public_read + region: us-east-1 + access_key_id: AKIAIPQVNYF2T3DTYIWQ + secret_access_key: + secure: "FBqDqOTeIPMu6v/WYPf4CFSlh9rLRZGKVtpLa5KkyuOhXRTrnEzBduEtS8/FMIxdQImvurhSvxWvqRybMOi4qoVfjMqqpHAI7uBbidbrvAcJoHNsx6BgUNVCIoH6a0UsAjTUtm6/YPIpzbHoLZXPL0GrHPMk6Mu04qVSmcYNWn4=" + on: + branch: try + condition: $DEPLOY = 1 && $ALLOW_TRY = 1 + # this is the same as the above deployment provider except that it uploads to # a slightly different directory and has a different trigger - provider: s3 |
