File tree Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Expand file tree Collapse file tree 3 files changed +11
-13
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,9 +15,11 @@ 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 source ~/.nvm/nvm-exec; fi
19
18
- 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
20
23
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap caskroom/cask; fi
21
24
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install google-chrome; fi
22
25
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; fi
Original file line number Diff line number Diff line change 65
65
"exists-sync" : " 0.0.3" ,
66
66
"minimatch" : " ^3.0.0" ,
67
67
"mocha" : " ^2.4.5" ,
68
- "mock-fs" : " ^3.8 .0" ,
68
+ "mock-fs" : " ^3.9 .0" ,
69
69
"object-assign" : " ^4.0.1" ,
70
70
"rewire" : " ^2.5.1" ,
71
71
"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