forked from brouette-labs/blog.brouette-labs.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (33 loc) · 894 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cache: bundler
language: ruby
sudo: false
addons:
apt:
packages:
- aspell
- aspell-en
- aspell-fr
- jq
install:
- bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
script:
- bundle exec rake
after_success:
- ./bin/deploy-pr.sh
before_deploy:
- bundle exec jekyll build
- pip install --user awscli
- aws s3 rm s3://blog.brouette-labs.com --recursive
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
region: $AWS_DEFAULT_REGION
bucket: blog.brouette-labs.com
local_dir: _site
skip_cleanup: true
on:
branch: master
after_deploy:
- aws configure set preview.cloudfront true
- aws cloudfront create-invalidation --distribution-id "$CLOUDFRONT_DISTRIBUTION_ID" --paths "/*"