Skip to content

Commit

Permalink
Switch over to Travis's container infrastructure. Don't run prepublis…
Browse files Browse the repository at this point in the history
…h for Travis.
  • Loading branch information
John Vilk committed Nov 7, 2015
1 parent 5f9d4c8 commit 82b0336
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .travis.yml
@@ -1,25 +1,36 @@
language: node_js

node_js:
- "0.12"
- "stable"
matrix:
include:
- node_js: "0.12"
env: TEST_BROWSER=0
- node_js: "stable"
env: TEST_BROWSER=0
- node_js: "stable"
env: TEST_BROWSER=1

sudo: false

cache:
directories:
- node_modules
- typings
- vendor/java_home

install:
- sudo apt-cache search oracle-java8-installer
- sudo add-apt-repository -y ppa:openjdk-r/ppa
- sudo apt-get update
- sudo apt-get install -y openjdk-8-jdk
- npm install
- ./node_modules/.bin/tsc --version
- ./node_modules/.bin/grunt --version

addons:
firefox: "latest"
apt:
packages:
- oracle-java8-installer

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

script:
- ./node_modules/.bin/grunt test
- ./node_modules/.bin/grunt test-browser-travis
- if test $TEST_BROWSER -eq 0; then echo "grunt test"; ./node_modules/.bin/grunt test --grunt-ignore-compile-errors; else echo "grunt test-browser-travis"; ./node_modules/.bin/grunt test-browser-travis --grunt-ignore-compile-errors; fi
5 changes: 5 additions & 0 deletions prepublish.js
Expand Up @@ -3,6 +3,11 @@ var path = require('path'),
fs = require('fs'),
child_process = require('child_process');

// Circumvent on Travis-CI.
if (process.env['TRAVIS']) {
process.exit(0);
}

function checkCode(code) {
if (code != 0) {
throw new Error("Program exited with code " + code);
Expand Down

0 comments on commit 82b0336

Please sign in to comment.