-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
41 lines (36 loc) · 926 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
os: linux
cache:
directories:
- node_modules
stages:
- test
- name: deploy
if: branch =~ ^(master|v\d+\.\d+)
AND (type NOT IN (cron, pull_request))
jobs:
include:
- stage: test
language: node_js
node_js:
- 9
before_install: # switch to python 3.6
- source ~/virtualenv/python3.6/bin/activate
- sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
script:
- echo TRAVIS_OS_NAME="$TRAVIS_OS_NAME"
- python3 --version
- node --version
- npm --version
- npm test
- stage: deploy
language: bash
script:
- echo "Trigger Docker Hub Rebuild..."
- curl -s -X POST -d '{"from":"travis"}' "$DOCKER_REBUILD_URL"
notifications:
email:
on_success: change
on_failure: change
on_start: never
on_cancel: never
on_error: never