-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
52 lines (40 loc) · 924 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
47
48
49
50
51
52
---
language: node_js
node_js:
- "12"
dist: xenial
addons:
chrome: stable
cache:
directories:
- $HOME/.npm
env:
global:
# See https://git.io/vdao3 for details.
- JOBS=1
- COVERAGE=true
- MIRAGE_LOGGING=false
addons:
firefox: latest
before_install:
- npm -v
install:
- npm install
before_script:
- if [ $TRAVIS_PULL_REQUEST = 'false' ]; then export PERCY_ENABLE=0; else echo "Enabling Percy" && export PERCY_ENABLE=1; fi
- echo $PERCY_ENABLE
branches:
only:
- master
script:
- npm test
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
deploy:
provider: script
script: .travis/deploy-sandbox.sh
skip_cleanup: true
on:
repo: backspace/prison-rideshare-ui
branch: primary
after_success:
- "test $TRAVIS_PULL_REQUEST && test $TRAVIS_PULL_REQUEST != 'false' && $TRAVIS_SECURE_ENV_VARS == 'true' && .travis/deploy-pull-request.sh"