forked from Tencent/wepy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (21 loc) · 919 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
language: node_js
node_js:
- "6"
matrix:
include:
- os: linux
- os: osx
sudo: false
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then sudo apt-get -qq update ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && ! $(which expect) ]] ; then sudo apt-get install -y expect ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then stty cols 80 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" && ! $(which expect) ]] ; then brew install expect ; fi
install:
- "npm run bootstrap"
script:
- "npm run test"
- "npm run bootstrap:prod"
- "bash ./scripts/gen.sh"
after_script: "npm install coveralls && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"