-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
45 lines (37 loc) · 1.1 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
42
43
44
language: node_js
node_js:
- "9"
- "10"
os:
- linux
- osx
cache:
directories:
- node_modules
before_install: # switch to python 3.6
- if [ "$TRAVIS_OS_NAME" == 'linux' ]; then source ~/virtualenv/python3.6/bin/activate; fi
- if [ "$TRAVIS_OS_NAME" == 'linux' ]; then sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++; fi
# - if [ "$TRAVIS_OS_NAME" == 'osx' ]; then brew update; fi
# - if [ "$TRAVIS_OS_NAME" == 'osx' ]; then brew install python3; fi
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then brew upgrade python; fi
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then brew install cairo pango libpng; fi
script:
- echo $TRAVIS_OS_NAME
- python3 --version
- node --version
- npm --version
- npm install facenet numjs flash-store # install peer dependencies
- npm run test
- npm run test:pack && echo 'Npm packing test is passed'
notifications:
email:
on_success: change
on_failure: change
before_deploy:
- npm version
- npm run dist
deploy:
provider: npm
email: zixia@zixia.net
api_key: "$NPM_TOKEN"
skip_cleanup: true