forked from fabricjs/fabric.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
88 lines (80 loc) · 2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
language: node_js
services:
- docker
node_js:
- "10"
addons:
apt:
packages:
- libgif-dev
- libpng-dev
- libpango1.0-dev
- libjpeg-dev
# libcairo2-dev is preinstalled
stages:
- Linting and Building
- Unit Tests
- Visual Tests
cache:
directories:
- node_modules
env:
global:
- LAUNCHER=Node
jobs:
fast_finish: true
allow_failures:
- env: LAUNCHER=Node CANFAIL=TRUE
- env: LAUNCHER=Firefox CANFAIL=TRUE
- env: LAUNCHER=Chrome CANFAIL=TRUE
include:
- stage: Linting and Building
env: STEP=LINT
install: npm install [email protected]
script: 'npm run lint && npm run lint_tests'
addons:
apt:
packages: # avoid installing packages
- stage: Linting and Building
env: STEP=BUILD
install: npm install [email protected]
script: 'npm run build'
addons:
apt:
packages: # avoid installing packages
- stage: Unit Tests
env: LAUNCHER=Chrome
install: npm install [email protected] [email protected]
addons:
apt:
packages: # avoid installing packages
- stage: Unit Tests
env: LAUNCHER=Firefox
install: npm install [email protected] [email protected]
addons:
apt:
packages: # avoid installing packages
- stage: Unit Tests
env: LAUNCHER=Node CANFAIL=TRUE
node_js: "10"
- stage: Unit Tests
node_js: "9"
- stage: Unit Tests
node_js: "8"
- stage: Unit Tests
node_js: "6"
- stage: Unit Tests
node_js: "4"
- stage: Visual Tests
node_js: "8"
script: npm run build:fast && npm run test:visual
- stage: Visual Tests
env: LAUNCHER=Chrome
install: npm install [email protected] [email protected]
script: npm run build:fast && testem ci --port 8080 -f testem-visual.json -l $LAUNCHER
- stage: Visual Tests
env: LAUNCHER=Firefox
install: npm install [email protected] [email protected]
script: npm run build:fast && testem ci --port 8080 -f testem-visual.json -l $LAUNCHER
script: 'npm run build:fast && testem ci --port 8080 -f testem.json -l $LAUNCHER'
dist: trusty