From 4572157c490ed1439f80a4075fa8141ddac53c16 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Wed, 8 Jul 2015 13:03:10 -0700 Subject: [PATCH] chore(build): add GCS upload of build artifacts This copies the dist/ folder for each successful travis run to a google cloud storage bucket, under the SHA of the commit. We only upload for submitted changes, not PRs. We can use this to fetch the dart sources for each SHA without having to re-build them, which is hard to reproduce since the environment might differ (eg. different Dart SDK) --- .travis.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.travis.yml b/.travis.yml index 655bbd3b4b..0405987c5f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -65,3 +65,28 @@ notifications: on_start: false # default: false slack: secure: EP4MzZ8JMyNQJ4S3cd5LEPWSMjC7ZRdzt3veelDiOeorJ6GwZfCDHncR+4BahDzQAuqyE/yNpZqaLbwRWloDi15qIUsm09vgl/1IyNky1Sqc6lEknhzIXpWSalo4/T9ZP8w870EoDvM/UO+LCV99R3wS8Nm9o99eLoWVb2HIUu0= + +deploy: + - provider: gcs + access_key_id: GOOGIOQTDBEOPBUAWFZQ + secret_access_key: + secure: "rsx0rvLAGWV47rmgJC2CJUmtFtj9TbbvGUGj8b8ykLuhu3LlMMgTpgxj7YNJ0j6HM3UZ9tubNuK0jqNW3eWul9AzNAz4zMvHpUmn852gIIOFKdYhCaB5PGL58QbqeP48B2VyDYqDWaQGH8ClfZYPrTb6XnhVTrZVHba5x9DqHwc=" + bucket: angular2-snapshots + skip_cleanup: true + local-dir: dist + upload-dir: $TRAVIS_COMMIT/dart_stable + on: + repo: angular/angular + condition: $MODE=dart + condition: $DART_CHANNEL=stable + - provider: gcs + access_key_id: GOOGIOQTDBEOPBUAWFZQ + secret_access_key: + secure: "rsx0rvLAGWV47rmgJC2CJUmtFtj9TbbvGUGj8b8ykLuhu3LlMMgTpgxj7YNJ0j6HM3UZ9tubNuK0jqNW3eWul9AzNAz4zMvHpUmn852gIIOFKdYhCaB5PGL58QbqeP48B2VyDYqDWaQGH8ClfZYPrTb6XnhVTrZVHba5x9DqHwc=" + bucket: angular2-snapshots + skip_cleanup: true + local-dir: dist + upload-dir: $TRAVIS_COMMIT/js + on: + repo: angular/angular + condition: $MODE=js