-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
36 lines (32 loc) · 826 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
dist: trusty
addons:
chrome: stable
language: node_js
node_js:
- stable
cache:
yarn: true
before_install: yarn global add greenkeeper-lockfile@1
install:
- yarn global add travis-ci-cloudfront-invalidation
- yarn
before_script: greenkeeper-lockfile-update
script:
- yarn lint
- yarn test
- yarn test:integration
after_script: greenkeeper-lockfile-upload
before_deploy: yarn build:production
deploy:
provider: s3
skip_cleanup: true
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: css-in-js-playground.com
local-dir: dist
acl: public_read
detect_encoding: true
on:
branch: master
after_deploy:
- travis-ci-cloudfront-invalidation -a $AWS_ACCESS_KEY_ID -s $AWS_SECRET_ACCESS_KEY -c $AWS_CLOUDFRONT_ID -i '/*' -b $TRAVIS_BRANCH -p $TRAVIS_PULL_REQUEST