if: branch = master AND type = push
before_install: []
install: []
- cache: false
sudo: false
script:
MESSAGE_FILE=$(mktemp -t msg.XXXXXX);
- secure: "cFh8thThqEJLC98XKI5pfqflUzOlxsYPRW20AWRaYOOgYHPTiGWypTXiPbGSKaeAXTZoOA+DpQtEmefc0U6lt9dHc7a/MIaK6isFurjlnKYiLOeTruzyu1z7PWCeZ/jKXsU2RK/88DBtlNwfMdaMIeuKj14IVfpepPPL71ETbuk="
before_install:
- - zcat $HOME/docker/rust-ci.tar.gz | docker load || true
+ # We'll use the AWS cli to download/upload cached docker layers, so install
+ # that here.
+ - if [ "$TRAVIS_OS_NAME" = linux ]; then
+ pip install --user awscli;
+ export PATH=$PATH:$HOME/.local/bin;
+ fi
- mkdir -p $HOME/rustsrc
# FIXME(#46924): these two commands are required to enable IPv6,
# they shouldn't exist, please revert once more official solutions appeared.
# it happened
- dmesg | grep -i kill
-# Save tagged docker images we created and load them if they're available
-# Travis saves caches whether the build failed or not, nuke rustsrc if
-# the failure was while updating it (as it may be in a bad state)
-# https://github.com/travis-ci/travis-ci/issues/4472
-before_cache:
- - docker history -q rust-ci |
- grep -v missing |
- xargs docker save |
- gzip > $HOME/docker/rust-ci.tar.gz
-
notifications:
email: false
-cache:
- directories:
- - $HOME/docker
-
before_deploy:
- mkdir -p deploy/$TRAVIS_COMMIT
- >
deploy:
- provider: s3
- edge:
- branch: s3-eager-autoload
bucket: rust-lang-ci2
skip_cleanup: true
local_dir: deploy
# 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
- edge:
- branch: s3-eager-autoload
bucket: rust-lang-ci2
skip_cleanup: true
local_dir: deploy
# try branch. Travis does not appear to provide a way to use "or" in these
# conditions.
- provider: s3
- edge:
- branch: s3-eager-autoload
bucket: rust-lang-ci2
skip_cleanup: true
local_dir: deploy
condition: $DEPLOY = 1
- provider: s3
- edge:
- branch: s3-eager-autoload
bucket: rust-lang-ci2
skip_cleanup: true
local_dir: deploy