fabric.js/.travis.yml
Andrea Bogazzi c7607c8d16
Add node 10 tests with allowed failures (#5004)
* travis checks

* test

* test
2018-05-29 11:41:02 +02:00

76 lines
1.4 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
- test
cache:
directories:
- node_modules
env:
global:
- LAUNCHER=Node
jobs:
jobs:
fast_finish: true
allow_failures:
- node_js: "10"
- env: LAUNCHER=Node
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: test
env: LAUNCHER=Chrome
install: npm install testem@1.18.4 qunit@2.4.1
addons:
apt:
packages: # avoid installing packages
- stage: test
env: LAUNCHER=Firefox
install: npm install testem@1.18.4 qunit@2.4.1
addons:
apt:
packages: # avoid installing packages
- stage: test
node_js: "10"
- stage: test
node_js: "9"
- stage: test
node_js: "8"
- stage: test
node_js: "6"
- stage: test
node_js: "4"
script: 'npm run build:fast && testem ci --port 8080 -f testem.json -l $LAUNCHER'
dist: trusty