forked from Tencent/wepy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (22 loc) · 939 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:
- "8"
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 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"