Skip to content

Commit ed127c6

Browse files
committed
debugging why npm i is breaking in appveyor
omgwtfbbq? ugh. wtf line endings? wat ok.. what about just npm i? ok.. so really no pkgjson i guess you do need those empty lines in a powershell script. silly. AHH!!!! repo is not cloned yet during init! stupid yml huh.. whats in env that it cant find npm? huh.. Path vs PATH on windows??? What if we didnt set any env at all? asdfasdf
1 parent 6a98da2 commit ed127c6

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

appveyor.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
version: '{build}'
2-
init:
3-
- ps: >-
4-
Install-Product node 6
5-
6-
npm i -g serverless
7-
8-
npm i
9-
build: off
10-
test_script:
11-
- cmd: node test.js
1+
version: '{build}'
2+
init:
3+
- ps: >-
4+
Install-Product node 6
5+
6+
npm i -g serverless
7+
build: off
8+
test_script:
9+
- cmd: >-
10+
npm i
11+
12+
node test.js

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"scripts": {
4141
"test": "node test.js && bats test.bats",
4242
"lint": "eslint *.js lib/*.js && prettier -l index.js lib/*.js || (echo need formatting ; exit 1)",
43-
"format": "prettier --write index.js lib/*.js"
43+
"format": "prettier --write index.js lib/*.js test.js"
4444
},
4545
"devDependencies": {
4646
"eslint": "*",

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const teardown = () => {
5353
'slimPatterns.yml',
5454
'serverless.yml.bak',
5555
getUserCachePath(),
56-
...glob.sync('serverless-python-requirements-*.tgz'),
56+
...glob.sync('serverless-python-requirements-*.tgz')
5757
].map(path => removeSync(path));
5858
git(['checkout', 'serverless.yml']);
5959
process.chdir(initialWorkingDir);

0 commit comments

Comments
 (0)