File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11language : node_js
22node_js :
3- - ' 4'
4- - ' 5'
53- ' 6'
64- ' 7'
75- ' 8'
6+ - ' 9'
87- ' 10'
98os :
109- linux
Original file line number Diff line number Diff line change 88# Test against these versions of Node
99environment :
1010 matrix :
11- - nodejs_version : " 4"
12- - nodejs_version : " 5"
1311 - nodejs_version : " 6"
1412 - nodejs_version : " 7"
1513 - nodejs_version : " 8"
Original file line number Diff line number Diff line change 11npm run dist
22
3- if (" $env: nodejs_version " -match " ^(6|7|8|9)|[1-9][0-9]+(\.)?.*" ) {
4- cd c:\pact- js
5- Get-ChildItem " .\examples" - Directory | ForEach-Object {
6- echo " Running examples in $ ( $_.FullName ) "
7- cd $_.FullName
8- npm i
9- npm t
10- if ($LastExitCode -ne 0 ) { $host.SetShouldExit ($LastExitCode ) }
11- }
12- } else {
13- echo " Skipping examples for older node versions"
14- }
3+ Get-ChildItem " .\examples" - Directory | ForEach-Object {
4+ Write-Output " Running examples in $ ( $_.FullName ) "
5+ cd $_.FullName
6+ npm i
7+ npm t
8+ if ($LastExitCode -ne 0 ) { $host.SetShouldExit ($LastExitCode ) }
9+ }
Original file line number Diff line number Diff line change 22
33npm run dist
44
5- # Only run E2E examples on Node 6+
6- if [[ " ${TRAVIS_NODE_VERSION} " =~ ^(6| 7| 8| 9)| [1-9][0-9]+ ]]; then
7- echo " Running e2e examples build for node version ${TRAVIS_NODE_VERSION} "
8- for i in examples/* ; do
9- echo " ------------------------------------------------"
10- echo " ------------> continuing to test example project: $i "
11- cd " $i "
12- npm install
13- npm test
14- cd ../../
15- done
16- else
17- echo " Skipping examples for node version ${TRAVIS_NODE_VERSION} "
18- fi
5+ echo " Running e2e examples build for node version ${TRAVIS_NODE_VERSION} "
6+ for i in examples/* ; do
7+ echo " ------------------------------------------------"
8+ echo " ------------> continuing to test example project: $i "
9+ cd " $i "
10+ npm install
11+ npm test
12+ cd ../../
13+ done
14+
You can’t perform that action at this time.
0 commit comments