File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ sudo: false
2
2
env :
3
3
- NODE_VERSION=5 SCRIPT=lint
4
4
- NODE_VERSION=5 SCRIPT=test
5
+ - NODE_VERSION=6 SCRIPT=test
5
6
os :
6
7
- linux
7
8
- osx
@@ -14,7 +15,7 @@ script:
14
15
- npm run-script $SCRIPT
15
16
16
17
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 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0 /install.sh | bash; fi
18
19
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source ~/.nvm/nvm-exec; fi
19
20
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
20
21
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap caskroom/cask; fi
Original file line number Diff line number Diff line change 66
66
"exists-sync" : " 0.0.3" ,
67
67
"minimatch" : " ^3.0.0" ,
68
68
"mocha" : " ^2.4.5" ,
69
- "mock-fs" : " ^3.8 .0" ,
69
+ "mock-fs" : " ^3.9 .0" ,
70
70
"object-assign" : " ^4.0.1" ,
71
71
"rewire" : " ^2.5.1" ,
72
72
"sinon" : " ^1.17.3" ,
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
var fs = require ( 'fs-extra' ) ;
4
- var existsSync = require ( 'exists-sync' ) ;
5
4
var Promise = require ( 'ember-cli/lib/ext/promise' ) ;
6
- var remove = Promise . denodeify ( fs . remove ) ;
7
5
var root = process . cwd ( ) ;
8
6
9
7
module . exports . setup = function ( path ) {
10
8
process . chdir ( root ) ;
9
+ fs . removeSync ( path ) ;
10
+ fs . ensureDirSync ( path ) ;
11
11
12
- return remove ( path ) . then ( function ( ) {
13
- fs . mkdirsSync ( path ) ;
14
- } ) ;
12
+ return Promise . resolve ( ) ;
15
13
} ;
16
14
17
15
module . exports . teardown = function ( path ) {
18
16
process . chdir ( root ) ;
17
+ fs . removeSync ( path ) ;
19
18
20
- if ( existsSync ( path ) ) {
21
- return remove ( path ) ;
22
- } else {
23
- return Promise . resolve ( ) ;
24
- }
19
+ return Promise . resolve ( ) ;
25
20
} ;
You can’t perform that action at this time.
0 commit comments