fabric.js/.travis.yml
Andrea Bogazzi d95db41608
Better visual tests, test passing, more SVGs (#5076)
* improving golddens

* more tests

* test passing

* removed dist

* fixed travis

* make visual running in browser too

* more travis

* fixed travis

* fixed travis

* more coffee
2018-06-28 12:31:26 +02:00

87 lines
2.1 KiB
YAML

language: node_js
services:
- docker
node_js:
- "10"
addons:
apt:
packages:
- libgif-dev
- libpng-dev
- libpango1.0-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 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
install: npm install testem@1.18.4 qunit@2.4.1
addons:
apt:
packages: # avoid installing packages
- stage: Unit Tests
env: LAUNCHER=Firefox
install: npm install testem@1.18.4 qunit@2.4.1
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 test:visual
- stage: Visual Tests
env: LAUNCHER=Chrome CANFAIL=TRUE
install: npm install testem@1.18.4 qunit@2.4.1
script: npm run build:fast && testem ci --port 8080 -f testem-visual.json -l $LAUNCHER
- stage: Visual Tests
env: LAUNCHER=Firefox CANFAIL=TRUE
install: npm install testem@1.18.4 qunit@2.4.1
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