forked from fabricjs/fabric.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
102 lines (95 loc) · 2.52 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
language: node_js
node_js:
- "12"
addons:
apt:
packages:
- libgif-dev
- libpng-dev
- libpango1.0-dev
- libjpeg8-dev
- librsvg2-dev
- libcairo2-dev
stages:
- Linting and Building
- Unit Tests
- Visual Tests
- Extra OS
cache:
directories:
- node_modules
env:
global:
- LAUNCHER=Node
jobs:
fast_finish: true
allow_failures:
- env: CANFAIL=TRUE
- env: LAUNCHER=Node CANFAIL=TRUE
include:
- stage: Linting and Building
env: STEP=LINT
install: npm install eslint@4.7.x
script: 'npm run lint && npm run lint_tests'
addons:
apt:
packages: # avoid installing packages
- stage: Linting and Building
env: STEP=BUILD
install: npm install uglify-js@3.3.x
script: 'npm run build'
addons:
apt:
packages: # avoid installing packages
- stage: Unit Tests
env: LAUNCHER=Chrome
script: npm run build:fast && testem ci --port 8080 -f testem.json -l $LAUNCHER
addons:
apt:
packages: # avoid installing packages
- stage: Unit Tests
env: LAUNCHER=Firefox
script: npm run build:fast && testem ci --port 8080 -f testem.json -l $LAUNCHER
addons:
apt:
packages: # avoid installing packages
- stage: Unit Tests
env: LAUNCHER=Node
node_js: "14"
- stage: Unit Tests
env: LAUNCHER=Node
node_js: "12"
- stage: Unit Tests
env: LAUNCHER=Node
node_js: "10"
- stage: Unit Tests
node_js: "8"
- stage: Visual Tests
env: LAUNCHER=Node
node_js: "12"
script: npm run build:fast && npm run test:visual
- stage: Visual Tests
env: LAUNCHER=Chrome
script: npm run build:fast && testem ci --port 8080 -f testem-visual.json -l $LAUNCHER
addons:
apt:
packages: # avoid installing packages
- stage: Visual Tests
env: LAUNCHER=Firefox
script: npm run build:fast && testem ci --port 8080 -f testem-visual.json -l $LAUNCHER
addons:
apt:
packages: # avoid installing packages
# - stage: Extra OS
# env: CANFAIL=TRUE
# node_js: "10"
# script: npm run build:fast && npm run test:visual
# before_install: brew upgrade giflib && brew install pkg-config cairo pango libpng jpeg librsvg
# os: osx
# - stage: Extra OS
# env: CANFAIL=TRUE
# node_js: "10"
# script: npm run build:fast && npm run test:visual
# os: windows
script: npm run build:fast && npm run test
dist: bionic