diff --git a/.travis.yml b/.travis.yml index 5562aa8803..042a22ce71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -66,3 +66,26 @@ notifications: slack: secure: EP4MzZ8JMyNQJ4S3cd5LEPWSMjC7ZRdzt3veelDiOeorJ6GwZfCDHncR+4BahDzQAuqyE/yNpZqaLbwRWloDi15qIUsm09vgl/1IyNky1Sqc6lEknhzIXpWSalo4/T9ZP8w870EoDvM/UO+LCV99R3wS8Nm9o99eLoWVb2HIUu0= +deploy: + - provider: gcs + # This is for project angular-github-babysitter + access_key_id: GOOGIOQTDBEOPBUAWFZQ + secret_access_key: + secure: "MEDggllZ5fw4wI9CEUi8WR6jKsKXqdRF/DLxSNC2JpzM5RlVeBm0uqjntYT1Cf1dASvQ2/+vZCUikL/3A48NcoEYRHXGmxu8D6t/SvleQD8Xv434xFOdsa2QqP/HiCtqCLOI5jJz1JVoB5nNyKKZ33ogTUL1LV1TfcrAioyizW8=" + # this bucket has a lifecycle to delete after 90 days: + # $ echo '{"rule": [{"action": {"type": "Delete"}, "condition": {"age": 90}}]}' > lifecycle.json + # $ gsutil lifecycle set lifecycle.json gs://angular2-snapshots + bucket: angular2-snapshots + # don't delete generated files + skip_cleanup: true + # serve to public at https://storage.googleapis.com/angular2-snapshots/SHA/dart_stable/dist.tgz + acl: public-read + # upload the .tgz archive created in scripts/ci/build_and_test.sh + local-dir: deploy + # create a "subdirectory" for each commit + upload-dir: $TRAVIS_COMMIT/dart_stable + on: + branch: master + repo: angular/angular + condition: "$MODE = dart && $DART_CHANNEL = stable" + diff --git a/scripts/ci/build_and_test.sh b/scripts/ci/build_and_test.sh index 5d7165af8d..75059046a8 100755 --- a/scripts/ci/build_and_test.sh +++ b/scripts/ci/build_and_test.sh @@ -9,4 +9,5 @@ SCRIPT_DIR=$(dirname $0) cd $SCRIPT_DIR/../.. ${SCRIPT_DIR}/build_$MODE.sh +mkdir deploy; tar -czpf deploy/dist.tgz -C dist . ${SCRIPT_DIR}/test_$MODE.sh