forked from fabricjs/fabric.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing docker with travis (fabricjs#4601)
* sudo required away
- Loading branch information
Showing
1 changed file
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
language: node_js | ||
|
||
services: | ||
- docker | ||
|
||
node_js: | ||
- "6" | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- libgif-dev | ||
- libpng-dev | ||
- libpango1.0-dev | ||
# libcairo2-dev is preinstalled | ||
stages: | ||
- Linting and Building | ||
- test | ||
|
@@ -17,23 +28,31 @@ env: | |
jobs: | ||
include: | ||
- stage: Linting and Building | ||
before_install: skip | ||
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 | ||
before_install: skip | ||
env: STEP=BUILD | ||
install: npm install [email protected] | ||
script: 'npm run build' | ||
addons: | ||
apt: | ||
packages: # avoid installing packages | ||
- stage: test | ||
env: LAUNCHER=Chrome | ||
before_install: skip | ||
install: npm install [email protected] [email protected] | ||
addons: | ||
apt: | ||
packages: # avoid installing packages | ||
- stage: test | ||
env: LAUNCHER=Firefox | ||
before_install: skip | ||
install: npm install [email protected] [email protected] | ||
addons: | ||
apt: | ||
packages: # avoid installing packages | ||
- stage: test | ||
node_js: "9" | ||
- stage: test | ||
|
@@ -45,8 +64,4 @@ jobs: | |
|
||
script: 'npm run build:fast && testem ci --port 8080 -f testem.json -l $LAUNCHER' | ||
|
||
before_install: | ||
- sudo apt-get install -qq libgif-dev libpng-dev libjpeg-dev libpango1.0-dev | ||
# libcairo2-dev is preinstalled | ||
|
||
dist: trusty |