File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 39
39
# install modules
40
40
- ps : >-
41
41
if ($env:nodejs_version -eq "4") {
42
- npm install -g npm@3;
42
+ cmd /c npm install -g npm@3;
43
43
}
44
44
if ($env:nodejs_version -in @("8", "10", "12")) {
45
- npm install -g npm@6.10.3 ;
45
+ cmd /c npm install -g npm@6.14.5 ;
46
46
}
47
47
- npm install
48
48
49
+ - ps : >-
50
+ if ([int]$env:nodejs_version -le 8) {
51
+ cmd /c npm i eslint@6 2`>`&1;
52
+ }
53
+
49
54
# fix symlinks
50
55
- git config core.symlinks true
51
56
- git reset --hard
54
59
- cd .\resolvers\webpack && npm install && cd ..\..
55
60
- cd .\resolvers\node && npm install && cd ..\..
56
61
62
+ # Upgrade nyc
63
+ - npm i --no-save nyc@15.0.1
64
+ - ps : >-
65
+ $resolverDir = "./resolvers";
66
+ Get-ChildItem -Directory $resolverDir |
67
+ ForEach-Object {
68
+ Push-Location $(Resolve-Path $(Join-Path $resolverDir $_));
69
+ cmd /c npm ls nyc 2`>`&1;
70
+ if ($?) {
71
+ cmd /c npm i --no-save nyc@15.0.1 2`>`&1;
72
+ }
73
+ Pop-Location;
74
+ }
75
+
57
76
# Post-install test scripts.
58
77
test_script :
59
78
Original file line number Diff line number Diff line change 31
31
"test-compiled" : " npm run prepublish && BABEL_ENV=testCompiled mocha --compilers js:babel-register tests/src" ,
32
32
"test-all" : " node --require babel-register ./scripts/testAll" ,
33
33
"prepublish" : " not-in-publish || npm run build" ,
34
- "coveralls" : " nyc report --reporter lcovonly && cat ./coverage/lcov.info | coveralls "
34
+ "coveralls" : " nyc report --reporter lcovonly && coveralls < ./coverage/lcov.info"
35
35
},
36
36
"repository" : {
37
37
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments