forked from binance-exchange/node-binance-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (35 loc) · 1.15 KB
/
.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
language: node_js
node_js:
- "9"
matrix:
include:
- os: linux
dist: trusty
sudo: required
env: QUALITY=yes
- os: linux
dist: precise
sudo: required
- os: osx
osx_image: xcode7.2
allow_failures:
- os: osx
branches:
only: master
notifications:
webhooks: https://www.travisbuddy.com/?insertMode=update
before_script:
- travis_retry npm install
- travis_retry npm install coveralls istanbul mocha chai codecov codacy-coverage mocha-lcov-reporter eslint
- travis_retry npm install -g coveralls istanbul mocha chai codecov codacy-coverage mocha-lcov-reporter eslint
- travis_retry sudo apt-get install tinyproxy curl
- tinyproxy
- travis_retry curl -v -I --proxy http://127.0.0.1:8888 https://www.google.com
script:
- travis_retry npm run test
- travis_retry npm run lint
after_success:
- if [[ $QUALITY == "yes" ]]; then travis_retry npm run cover; fi
- if [[ $QUALITY == "yes" ]]; then travis_retry npm run coveralls; fi
- if [[ $QUALITY == "yes" ]]; then travis_retry npm run codecov; fi
- if [[ $QUALITY == "yes" ]]; then travis_retry npm run codacy; fi