Skip to content

Commit

Permalink
chore(deprecate): deprecate Node version < 6
Browse files Browse the repository at this point in the history
BREAKING CHANGE: No longer supporting Node versions 4 or 5.
  • Loading branch information
mefellows committed Oct 9, 2018
1 parent d14745d commit bccd7cf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 30 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
language: node_js
node_js:
- '4'
- '5'
- '6'
- '7'
- '8'
Expand Down
2 changes: 0 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ init:
# Test against these versions of Node
environment:
matrix:
- nodejs_version: "4"
- nodejs_version: "5"
- nodejs_version: "6"
- nodejs_version: "7"
- nodejs_version: "8"
Expand Down
19 changes: 7 additions & 12 deletions scripts/build.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
npm run dist

if ("$env:nodejs_version" -match "^(6|7|8|9)|[1-9][0-9]+(\.)?.*") {
cd c:\pact-js
Get-ChildItem ".\examples" -Directory | ForEach-Object {
echo "Running examples in $($_.FullName)"
cd $_.FullName
npm i
npm t
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
}
} else {
echo "Skipping examples for older node versions"
}
Get-ChildItem ".\examples" -Directory | ForEach-Object {
Write-Output "Running examples in $($_.FullName)"
cd $_.FullName
npm i
npm t
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
}
24 changes: 10 additions & 14 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@

npm run dist

# Only run E2E examples on Node 6+
if [[ "${TRAVIS_NODE_VERSION}" =~ ^(6|7|8|9)|[1-9][0-9]+ ]]; then
echo "Running e2e examples build for node version ${TRAVIS_NODE_VERSION}"
for i in examples/*; do
echo "------------------------------------------------"
echo "------------> continuing to test example project: $i"
cd "$i"
npm install
npm test
cd ../../
done
else
echo "Skipping examples for node version ${TRAVIS_NODE_VERSION}"
fi
echo "Running e2e examples build for node version ${TRAVIS_NODE_VERSION}"
for i in examples/*; do
echo "------------------------------------------------"
echo "------------> continuing to test example project: $i"
cd "$i"
npm install
npm test
cd ../../
done

0 comments on commit bccd7cf

Please sign in to comment.