-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (37 loc) · 878 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
41
42
43
44
45
46
---
language: node_js
node_js:
- '4'
# workaround from https://github.com/travis-ci/travis-ci/issues/8836#issuecomment-348227535
sudo: required
addons:
chrome: stable
branches:
only:
- master
- dev
cache: yarn
before_install:
- pip install --user awscli
- npm config set spin false
- npm install --global [email protected]
- yarn global add [email protected]
install:
- yarn install --ignore-engines
- bower install
before_script:
- chmod +x .travis/test-and-build.sh
script: .travis/test-and-build.sh
before_deploy:
- chmod +x .travis/deploy.sh
deploy:
- provider: script
script: .travis/deploy.sh dist $S3_STAGING $AWS_CLOUDFRONT_ID_STAGING
skip_cleanup: true
on:
branch: dev
- provider: script
script: .travis/deploy.sh dist $S3_PRODUCTION $AWS_CLOUDFRONT_ID_PRODUCTION
skip_cleanup: true
on:
branch: master