forked from huan/node-facenet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (43 loc) · 992 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: node_js
dist: trusty
sudo: required
node_js:
- "8"
os:
- linux
- osx
cache:
directories:
- node_modules
install:
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then brew install python3; fi
- npm install --unsafe-perm
script:
- echo $TRAVIS_OS_NAME
- python3 --version
- node --version
- npm --version
- npm run lint
- npm run dist
- npm run test
- npm run test:npm && echo 'Npm packing test is passed'
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/8c6e384e12876030529f
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
email:
on_success: change
on_failure: change
after_success:
- npm run coverage
before_deploy:
- npm version
- npm run dist
deploy:
provider: npm
email: [email protected]
api_key: "$NPM_TOKEN"
skip_cleanup: true