Skip to content

Commit

Permalink
Merge pull request #4 from Munter/node-0.12
Browse files Browse the repository at this point in the history
node 0.12 support
  • Loading branch information
Munter committed Jul 29, 2015
2 parents 65e482f + f99edd3 commit a435078
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
11 changes: 2 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
language: node_js
sudo: false
cache:
directories:
- node_modules
- version-0/node_modules
- version-1/node_modules
- version-2/node_modules
- version-latest/node_modules
cache: false
node_js:
- "0.10"
# - "0.12" # Something crazy is going on for node 0.12 and node-sass 1.x
- "0.12"
script: "npm run-script travis"
after_success: "<coverage/lcov.info ./node_modules/coveralls/bin/coveralls.js"
9 changes: 2 additions & 7 deletions version-1/version-1-test.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
'use strict';

var expect = require('unexpected');
var sass;
try {
sass = require('./index');
} catch (err) {
// Node 0.12 wtf
}
var sass = require('./index');

(sass ? describe : describe.skip)('node-sass 1.x', function () {
(process.version.indexOf('v0.12') !== 0 ? describe : describe.skip)('node-sass 1.x', function () {
it('should load the correct version', function () {
expect(sass.version, 'to match', /^1.\d+.\d+$/);
});
Expand Down

0 comments on commit a435078

Please sign in to comment.