1
1
language : ruby
2
2
rvm :
3
- - 2.1
4
-
5
- # Containers are cool!
3
+ - 2.2
4
+
5
+ # Containers are cool!
6
6
sudo : false
7
7
8
- install :
8
+ install :
9
9
- bundle install
10
10
- pip install --user awscli
11
11
- ~/.local/bin/aws configure set preview.cloudfront true
@@ -32,7 +32,7 @@ deploy:
32
32
# Cloudfront invalidation: If not PR, decrypt credentials, then build
33
33
# invalidation payload with `travis/inval-list.py` and use locally-installed
34
34
# awscli to submit it
35
- after_success :
35
+ after_success :
36
36
- ' [[ $TRAVIS_PULL_REQUEST == "false" ]] && python travis/inval-list.py'
37
37
38
38
after_deploy :
@@ -47,26 +47,26 @@ after_deploy:
47
47
#
48
48
# We set them by going to the Travis UI at
49
49
# https://travis-ci.org/rust-lang/rust-www/settings and creating the variables
50
- # AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY with the appropriate values.
50
+ # AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY with the appropriate values.
51
51
#
52
52
# The values in those env vars come from the Travis account's IAM credentials,
53
53
# which you can get from
54
54
# https://console.aws.amazon.com/iam/home?region=us-west-1#users if you're
55
55
# logged in as someone with the appropriate permissions. The
56
56
# cloudfront distribution-id is listed in the ID field of the distribution for
57
57
# www-rust-lang-org on the console at
58
- # https://console.aws.amazon.com/cloudfront/home?region=us-west-1.
58
+ # https://console.aws.amazon.com/cloudfront/home?region=us-west-1.
59
+ #
60
+ # For the deploy step, the secret access key is encrypted on the command line.
61
+ # Encryption uses the Travis CLI, so on your laptop,
59
62
#
60
- # For the deploy step, the secret access key is encrypted on the command line.
61
- # Encryption uses the Travis CLI, so on your laptop,
62
- #
63
63
# $ gem install travis
64
64
#
65
65
# The string you encrypt for the SECRET_ACCESS_KEY will be the same as the
66
66
# string in the AWS_SECRET_ACCESS_KEY variable that you set earlier.
67
- # To encrypt the single variable:
67
+ # To encrypt the single variable:
68
68
#
69
69
# $ travis encrypt -r rust-lang/rust-www "abc123"
70
70
#
71
71
# The output of that command will contain a `secure: "7890wxyzPQR"` line which
72
- # you then add to `.travis.yml` under `secret_access_key`.
72
+ # you then add to `.travis.yml` under `secret_access_key`.
0 commit comments