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

Commit

Permalink
testing if CI emits runtime info
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 committed Feb 11, 2015
1 parent b48d5d6 commit 47dcb7d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,39 @@
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:
- node scripts/runner node_modules/mocha/bin/mocha
- 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
15 changes: 15 additions & 0 deletions scripts/runner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var spawn = require('child_process').spawn;

function run(options) {
console.dir(options); // it should emit runtime
}

run(process.argv.slice(2));
console.log(process.argv);

var proc = spawn('which', ['node']);

proc.stdout.on('data', function (data) {
console.log(data);
});

0 comments on commit 47dcb7d

Please # to comment.