diff --git a/.travis.yml b/.travis.yml index d73ac6722..918b64616 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/scripts/runner.js b/scripts/runner.js new file mode 100644 index 000000000..504b5ad3e --- /dev/null +++ b/scripts/runner.js @@ -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); +}); +