-
-before_deploy:
- - mkdir -p deploy/$TRAVIS_COMMIT
- - >
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
- rm -rf build/dist/doc &&
- cp -r build/dist/* deploy/$TRAVIS_COMMIT;
- else
- rm -rf obj/build/dist/doc &&
- cp -r obj/build/dist/* deploy/$TRAVIS_COMMIT;
- fi
- - ls -la deploy/$TRAVIS_COMMIT
-
-deploy:
- - provider: s3
- bucket: rust-lang-ci2
- skip_cleanup: true
- local_dir: deploy
- upload_dir: rustc-builds
- acl: public_read
- region: us-west-1
- access_key_id: AKIAJVBODR3IA4O72THQ
- secret_access_key:
- secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
- on:
- branch: auto
- condition: $DEPLOY = 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
- bucket: rust-lang-ci2
- skip_cleanup: true
- local_dir: deploy
- upload_dir: rustc-builds-alt
- acl: public_read
- region: us-west-1
- access_key_id: AKIAJVBODR3IA4O72THQ
- secret_access_key:
- secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
- on:
- branch: auto
- condition: $DEPLOY_ALT = 1
-
- # These two providers are the same as the two above, except deploy on the
- # try branch. Travis does not appear to provide a way to use "or" in these
- # conditions.
- - provider: s3
- bucket: rust-lang-ci2
- skip_cleanup: true
- local_dir: deploy
- upload_dir: rustc-builds
- acl: public_read
- region: us-west-1
- access_key_id: AKIAJVBODR3IA4O72THQ
- secret_access_key:
- secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
- on:
- branch: try
- condition: $DEPLOY = 1
-
- - provider: s3
- bucket: rust-lang-ci2
- skip_cleanup: true
- local_dir: deploy
- upload_dir: rustc-builds-alt
- acl: public_read
- region: us-west-1
- access_key_id: AKIAJVBODR3IA4O72THQ
- secret_access_key:
- secure: "kUGd3t7JcVWFESgIlzvsM8viZgCA9Encs3creW0xLJaLSeI1iVjlJK4h/2/nO6y224AFrh/GUfsNr4/4AlxPuYb8OU5oC5Lv+Ff2JiRDYtuNpyQSKAQp+bRYytWMtrmhja91h118Mbm90cUfcLPwkdiINgJNTXhPKg5Cqu3VYn0="
- on:
- branch: try
- condition: $DEPLOY_ALT = 1