forked from bajcmartinez/google-tasks-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (30 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
install:
- pip install --user awscli
before_script:
- npm i
script:
- npm run test
after_script:
- COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN npm run coveralls
before_deploy:
- >
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
export BEFORE_DEPLOY_RUN=1;
git config --local user.name "Juan Cruz Martinez"
git config --local user.email "[email protected]"
npm run build
fi;
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: googletasksui.com
local_dir: build
skip_cleanup: true
on:
branch: master
after_deploy:
# Allow `awscli` to make requests to CloudFront.
- aws configure set preview.cloudfront true
# Invalidate every object in the targeted distribution.
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"