-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
38 lines (38 loc) · 968 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
language: node_js
node_js:
- lts/*
sudo: required
dist: xenial
services:
- docker
env:
global:
- GIT_SHA=$( git rev-parse HEAD )
- DOCKERTAG=$( echo $TRAVIS_BRANCH | tr -s "[:punct:]" "-" )
- SC_THEME=default
before_install:
- openssl aes-256-cbc -K $encrypted_b7461320c5f4_key -iv $encrypted_b7461320c5f4_iv -in deploy/travis_rsa.enc -out deploy/travis_rsa -d
install:
- yarn global add codecov surge
- yarn install --production=false
script:
- yarn lint:ci
- yarn test:ci
- yarn build
- codecov
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
notifications:
email: false
cache:
directories:
- node_modules
# deploy docs & storybook for all pull requests
after_success:
- bash ./deploy/pull-deploy.sh
# deploy master to staging system
deploy:
skip_cleanup: true
provider: script
script: bash ./deploy/deploy.sh
on:
branch: master