forked from ember-cli/ember-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (29 loc) · 770 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
sudo: false
language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
- "5"
- node
branches:
except:
- canary
cache:
directories:
$HOME/.npm
$HOME/.cache # includes bowers cache
before_install:
# prevent the npm loading indicator
- npm config --global set spin false
# if npm version is less 3.0.0 (lets say 1.x or 2.x) we should attempt to upgrade to 3
- if [[ $(npm -v | cut -d '.' -f 1) -lt 3 ]]; then npm i -g npm@^3; fi
install:
- npm install --no-optional
script: npm run-script test-all:cover
after_script:
- npm install coveralls codeclimate-test-reporter
- cat coverage/lcov.info | node_modules/.bin/codeclimate-test-reporter
- cat coverage/lcov.info | node_modules/.bin/coveralls
after_success:
- .travis/deploy.sh