2012-07-29 20:48:34 +00:00
|
|
|
language: node_js
|
2018-01-02 14:53:25 +00:00
|
|
|
|
2012-07-29 20:48:34 +00:00
|
|
|
node_js:
|
2018-05-29 09:41:02 +00:00
|
|
|
- "10"
|
2017-12-31 08:51:07 +00:00
|
|
|
|
2018-01-02 14:53:25 +00:00
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages:
|
|
|
|
|
- libgif-dev
|
|
|
|
|
- libpng-dev
|
|
|
|
|
- libpango1.0-dev
|
2018-08-05 12:54:25 +00:00
|
|
|
- libjpeg-dev
|
2018-09-15 23:59:36 +00:00
|
|
|
- librsvg2-dev
|
2018-01-02 14:53:25 +00:00
|
|
|
# libcairo2-dev is preinstalled
|
2018-01-01 22:51:51 +00:00
|
|
|
stages:
|
|
|
|
|
- Linting and Building
|
2018-06-26 09:41:03 +00:00
|
|
|
- Unit Tests
|
|
|
|
|
- Visual Tests
|
2018-01-01 22:51:51 +00:00
|
|
|
|
|
|
|
|
cache:
|
|
|
|
|
directories:
|
|
|
|
|
- node_modules
|
|
|
|
|
|
2017-12-31 08:51:07 +00:00
|
|
|
env:
|
|
|
|
|
global:
|
|
|
|
|
- LAUNCHER=Node
|
|
|
|
|
|
2018-10-21 15:28:44 +00:00
|
|
|
matrix:
|
|
|
|
|
fast_finish: true
|
|
|
|
|
|
2018-05-29 09:41:02 +00:00
|
|
|
jobs:
|
|
|
|
|
fast_finish: true
|
|
|
|
|
allow_failures:
|
2018-06-26 09:41:03 +00:00
|
|
|
- env: LAUNCHER=Node CANFAIL=TRUE
|
2018-06-28 10:31:26 +00:00
|
|
|
- env: LAUNCHER=Firefox CANFAIL=TRUE
|
|
|
|
|
- env: LAUNCHER=Chrome CANFAIL=TRUE
|
2017-12-31 08:51:07 +00:00
|
|
|
include:
|
2018-01-01 22:51:51 +00:00
|
|
|
- stage: Linting and Building
|
|
|
|
|
env: STEP=LINT
|
|
|
|
|
install: npm install eslint@4.7.x
|
|
|
|
|
script: 'npm run lint && npm run lint_tests'
|
2018-01-02 14:53:25 +00:00
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages: # avoid installing packages
|
2018-01-01 22:51:51 +00:00
|
|
|
- stage: Linting and Building
|
|
|
|
|
env: STEP=BUILD
|
2018-05-29 09:41:02 +00:00
|
|
|
install: npm install uglify-js@3.3.x
|
2018-01-01 22:51:51 +00:00
|
|
|
script: 'npm run build'
|
2018-01-02 14:53:25 +00:00
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages: # avoid installing packages
|
2018-06-26 09:41:03 +00:00
|
|
|
- stage: Unit Tests
|
2018-01-01 22:51:51 +00:00
|
|
|
env: LAUNCHER=Chrome
|
2018-09-15 23:59:36 +00:00
|
|
|
script: npm run build:fast && testem ci --port 8080 -f testem.json -l $LAUNCHER
|
2018-08-22 23:06:07 +00:00
|
|
|
install: npm install testem@1.18.4 qunit@2.6.1
|
2018-01-02 14:53:25 +00:00
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages: # avoid installing packages
|
2018-06-26 09:41:03 +00:00
|
|
|
- stage: Unit Tests
|
2018-01-01 22:51:51 +00:00
|
|
|
env: LAUNCHER=Firefox
|
2018-09-15 23:59:36 +00:00
|
|
|
script: npm run build:fast && testem ci --port 8080 -f testem.json -l $LAUNCHER
|
2018-08-22 23:06:07 +00:00
|
|
|
install: npm install testem@1.18.4 qunit@2.6.1
|
2018-01-02 14:53:25 +00:00
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages: # avoid installing packages
|
2018-06-26 09:41:03 +00:00
|
|
|
- stage: Unit Tests
|
2018-09-16 20:51:51 +00:00
|
|
|
env: LAUNCHER=Node
|
2018-05-29 09:41:02 +00:00
|
|
|
node_js: "10"
|
2018-06-26 09:41:03 +00:00
|
|
|
- stage: Unit Tests
|
2018-01-01 22:51:51 +00:00
|
|
|
node_js: "8"
|
2018-06-26 09:41:03 +00:00
|
|
|
- stage: Unit Tests
|
2018-01-01 22:51:51 +00:00
|
|
|
node_js: "6"
|
2018-06-26 09:41:03 +00:00
|
|
|
- stage: Unit Tests
|
2018-01-01 22:51:51 +00:00
|
|
|
node_js: "4"
|
2018-10-21 15:28:44 +00:00
|
|
|
- stage: Unit Tests
|
|
|
|
|
env: CANVAS=canvas-prebuilt
|
|
|
|
|
node_js: "8"
|
2019-01-07 01:10:28 +00:00
|
|
|
install: npm install && npm remove canvas && npm install canvas-prebuilt@^1.6.11 qunit@2.6.1
|
2018-10-21 15:28:44 +00:00
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages: # avoid installing packages
|
2018-06-26 09:41:03 +00:00
|
|
|
- stage: Visual Tests
|
2018-09-22 10:36:50 +00:00
|
|
|
env: LAUNCHER=Node CANFAIL=TRUE
|
2018-06-26 09:41:03 +00:00
|
|
|
node_js: "8"
|
2018-08-05 12:54:25 +00:00
|
|
|
script: npm run build:fast && npm run test:visual
|
2018-06-28 10:31:26 +00:00
|
|
|
- stage: Visual Tests
|
2018-06-28 12:05:36 +00:00
|
|
|
env: LAUNCHER=Chrome
|
2019-01-13 00:27:59 +00:00
|
|
|
install: npm install testem@1.18.4 qunit@2.6.2
|
2018-06-28 10:31:26 +00:00
|
|
|
script: npm run build:fast && testem ci --port 8080 -f testem-visual.json -l $LAUNCHER
|
2018-10-21 15:28:44 +00:00
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages: # avoid installing packages
|
2018-06-28 10:31:26 +00:00
|
|
|
- stage: Visual Tests
|
2018-06-28 12:05:36 +00:00
|
|
|
env: LAUNCHER=Firefox
|
2019-01-13 00:27:59 +00:00
|
|
|
install: npm install testem@1.18.4 qunit@2.6.2
|
2018-06-28 10:31:26 +00:00
|
|
|
script: npm run build:fast && testem ci --port 8080 -f testem-visual.json -l $LAUNCHER
|
2018-10-21 15:28:44 +00:00
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages: # avoid installing packages
|
2017-12-31 08:51:07 +00:00
|
|
|
|
2018-09-15 23:59:36 +00:00
|
|
|
script: npm run build:fast && npm run test
|
2017-12-31 08:51:07 +00:00
|
|
|
|
2017-04-22 18:59:34 +00:00
|
|
|
dist: trusty
|