Skip to content

Commit 9dc0b79

Browse files
committed
test(ci): node6 support
1 parent 7dc08a7 commit 9dc0b79

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ sudo: false
22
env:
33
- NODE_VERSION=5 SCRIPT=lint
44
- NODE_VERSION=5 SCRIPT=test
5+
- NODE_VERSION=6 SCRIPT=test
56
os:
67
- linux
78
- osx
@@ -14,9 +15,11 @@ script:
1415
- npm run-script $SCRIPT
1516

1617
before_install:
17-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash; fi
18-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source ~/.nvm/nvm-exec; fi
1918
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
19+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install nvm; fi
20+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir ~/.nvm; fi
21+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export NVM_DIR="/usr/local/opt/nvm"; fi
22+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source "$(brew --prefix nvm)/nvm.sh"; fi
2023
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap caskroom/cask; fi
2124
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install google-chrome; fi
2225
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; fi

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"exists-sync": "0.0.3",
6666
"minimatch": "^3.0.0",
6767
"mocha": "^2.4.5",
68-
"mock-fs": "^3.8.0",
68+
"mock-fs": "^3.9.0",
6969
"object-assign": "^4.0.1",
7070
"rewire": "^2.5.1",
7171
"sinon": "^1.17.3",

tests/helpers/tmp.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
'use strict';
22

33
var fs = require('fs-extra');
4-
var existsSync = require('exists-sync');
54
var Promise = require('ember-cli/lib/ext/promise');
6-
var remove = Promise.denodeify(fs.remove);
75
var root = process.cwd();
86

97
module.exports.setup = function (path) {
108
process.chdir(root);
9+
fs.removeSync(path);
10+
fs.ensureDirSync(path);
1111

12-
return remove(path).then(function () {
13-
fs.mkdirsSync(path);
14-
});
12+
return Promise.resolve();
1513
};
1614

1715
module.exports.teardown = function (path) {
1816
process.chdir(root);
17+
fs.removeSync(path);
1918

20-
if (existsSync(path)) {
21-
return remove(path);
22-
} else {
23-
return Promise.resolve();
24-
}
19+
return Promise.resolve();
2520
};

0 commit comments

Comments
 (0)