diff --git a/.travis.yml b/.travis.yml index d73ac6722..b3341d886 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,32 +1,38 @@ language: node_js + env: SKIP_SASS_BINARY_DOWNLOAD_FOR_CI=true compiler: - gcc + node_js: - "0.10" - "0.12" - iojs + matrix: fast_finish: true allow_failures: - node_js: iojs -before_install: - - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; - - sudo apt-get update; - - sudo apt-get install gcc-4.8 g++-4.8; - - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20; - - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20; - - g++ --version; - - sudo apt-get update -qq; +before_install: + - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test + - sudo apt-get update + - sudo apt-get install gcc-4.8 g++-4.8 + - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 + - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 + - g++ --version + - sudo apt-get update -qq - git submodule update --init --recursive + after_success: - npm run-script coverage + cache: directories: - node_modules + notifications: webhooks: urls: diff --git a/package.json b/package.json index 2a60bd5c7..791756236 100644 --- a/package.json +++ b/package.json @@ -21,10 +21,10 @@ "gypfile": true, "scripts": { "coverage": "node scripts/coverage.js", - "install": "node scripts/install.js", + "install": "node scripts/runner scripts/install.js", "postinstall": "node scripts/build.js", - "pretest": "node_modules/.bin/jshint bin lib test", - "test": "node_modules/.bin/mocha test" + "pretest": "node scripts/runner node_modules/jshint/bin/jshint bin lib test", + "test": "node scripts/runner node_modules/mocha/bin/mocha" }, "files": [ "bin", diff --git a/scripts/runner.js b/scripts/runner.js new file mode 100644 index 000000000..d582a072c --- /dev/null +++ b/scripts/runner.js @@ -0,0 +1,3 @@ +var spawn = require('child_process').spawn; + +spawn(process.execPath, process.argv.slice(2), { stdio: 'inherit' });