forked from travis-ci/travis-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (37 loc) · 1002 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
---
language: node_js
node_js: 8.5
env:
global:
- PERCY_ENABLE=0
sudo: required
dist: trusty
addons:
chrome: stable
cache:
directories:
- node_modules
env:
global:
# See https://git.io/vdao3 for details.
- JOBS=1
before_install:
- npm config set spin false
- npm install -g npm@5
- npm --version
- npm install -g greenkeeper-lockfile@1
install:
- npm install
before_script:
- if [ $TRAVIS_PULL_REQUEST = 'false' ]; then echo "Enabling Percy on push with default Ember" && export PERCY_ENABLE=1; else export PERCY_ENABLE=0; fi
- echo $PERCY_ENABLE
- if [ "$PERCY_ENABLE" -ne 1 ]; then export RANDOMISE=--random; fi
- echo $RANDOMISE
- greenkeeper-lockfile-update
script:
- npm run lint:js
- ember exam --reporter dot $RANDOMISE
after_script:
- greenkeeper-lockfile-upload
after_success:
- "test $TRAVIS_PULL_REQUEST && test $TRAVIS_PULL_REQUEST != 'false' && $TRAVIS_SECURE_ENV_VARS == 'true' && ./config/deployment/deploy-pull-request.sh"