Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Package: Makes npm tasks runtime-aware.
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 committed Feb 11, 2015
1 parent b48d5d6 commit 69e9156
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
22 changes: 14 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions scripts/runner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var spawn = require('child_process').spawn;

spawn(process.execPath, process.argv.slice(2), { stdio: 'inherit' });

0 comments on commit 69e9156

Please # to comment.