-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (22 loc) · 901 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
language: node_js
node_js:
- "5"
sudo: false
addons:
code_climate:
repo_token: 20521fcfc135e57ec05c456910e3c7843ef6ddbe014d4972894af1d4dbf014a5
cache:
directories:
- "travis-phantomjs"
before_install:
- "[ -d travis-phantomjs ] || mkdir travis-phantomjs && PHANTOM_EXISTS=false"
- "if [ $PHANTOM_EXISTS = 'false' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi"
- "if [ $PHANTOM_EXISTS = 'false' ]; then tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs; fi"
- "export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
- "phantomjs --version"
before_script:
- npm install -g codeclimate-test-reporter
script:
- npm test
after_script:
- codeclimate-test-reporter < dist/coverage/**/lcov.info