Skip to content

Commit

Permalink
try using cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed May 1, 2018
1 parent 8c7025c commit 9361b44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ shallow_clone: true
install:
- ps: Install-Product node $env:nodejs_version $env:Platform
- ps: Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
- SET PATH=bin\;%PATH%
- npm -C test/app1/ install || true
# workaround https://github.com/mapbox/node-pre-gyp/issues/300#issuecomment-328179994
- IF "%nodejs_version:~0,1%" EQU "6" npm install npm@2 -g
- IF "%nodejs_version:~0,1%" EQU "8" npm install npm@2 -g
- IF "%nodejs_version:~0,1%" EQU "9" npm install npm@2 -g
- IF "%nodejs_version:~0,2%" EQU "10" npm install npm@2 -g
- npm -C test/app1/ install || true
- npm config get
- node --version
- npm --version
Expand Down
2 changes: 1 addition & 1 deletion test/run.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function run(prog,command,args,app,opts,cb) {

// unless explicitly provided, lets execute the command inside the app specific directory
if (!opts.cwd) {
final_cmd += ' -C ' + path.join(__dirname,app.name);
opts.cwd = path.join(__dirname,app.name);
}
// avoid breakage when compiling with clang++ and node v0.10.x
// This is harmless to add for other versions and platforms
Expand Down

0 comments on commit 9361b44

Please sign in to comment.