-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (44 loc) · 1.29 KB
/
.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
41
42
43
44
language: node_js
node_js:
- '10'
dist: trusty
sudo: required
addons:
firefox: 66
chrome: stable
cache:
directories:
- node_modules
install:
- npm install -g travis-ci-cloudfront-invalidation
- npm install
before_script:
- npm run lint
script:
- xvfb-run npm run test
- xvfb-run npm run test:integration
deploy:
# UA Testing Deploy
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $S3_UAT_BUCKET_NAME
skip_cleanup: true
local_dir: build/es6-bundled
on:
branch: uat
# Development Deploy
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $S3_DEV_BUCKET_NAME
skip_cleanup: true
local_dir: build/es6-bundled
on:
branch: dev
after_deploy:
- test $TRAVIS_BRANCH = "uat" && travis-ci-cloudfront-invalidation -a $AWS_ACCESS_KEY_ID -s $AWS_SECRET_ACCESS_KEY -c $CLOUDFRONT_UAT_DISTRIBUTION_ID -i '/*' -b $TRAVIS_BRANCH -p $TRAVIS_PULL_REQUEST -o 'test'
- test $TRAVIS_BRANCH = "dev" && travis-ci-cloudfront-invalidation -a $AWS_ACCESS_KEY_ID -s $AWS_SECRET_ACCESS_KEY -c $CLOUDFRONT_DEV_DISTRIBUTION_ID -i '/*' -b $TRAVIS_BRANCH -p $TRAVIS_PULL_REQUEST -o 'develop'
notifications:
email: false
slack: worbli:PfaJOrAFdR08kwLNybNkiJ2T