Skip to content

Commit

Permalink
Testing docker with travis (fabricjs#4601)
Browse files Browse the repository at this point in the history
* sudo required away
  • Loading branch information
asturur authored Jan 2, 2018
1 parent 6f002b3 commit 8c387eb
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions .travis.yml
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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 8c387eb

Please sign in to comment.