Skip to content

Commit c778880

Browse files
committed
chore(deprecate): deprecate Node version < 6
BREAKING CHANGE: No longer supporting Node versions 4 or 5.
1 parent d14745d commit c778880

4 files changed

Lines changed: 18 additions & 30 deletions

File tree

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
language: node_js
22
node_js:
3-
- '4'
4-
- '5'
53
- '6'
64
- '7'
75
- '8'
6+
- '9'
87
- '10'
98
os:
109
- linux

appveyor.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ init:
88
# Test against these versions of Node
99
environment:
1010
matrix:
11-
- nodejs_version: "4"
12-
- nodejs_version: "5"
1311
- nodejs_version: "6"
1412
- nodejs_version: "7"
1513
- nodejs_version: "8"

scripts/build.ps1

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
npm 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+
}

scripts/build.sh

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@
22

33
npm 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+

0 commit comments

Comments
 (0)