-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(node): add initial node v12 support & update min versions (#1003)
- update minimum versions of node 8 & 10 to latest security patches - add node v12 to supported versions & travis testing (note: allow_failures is set because no public version of Ghost supports node 12 yet)
- Loading branch information
Showing
2 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
dist: xenial | ||
language: node_js | ||
node_js: | ||
- 8 | ||
- 10 | ||
- 8 | ||
- 10 | ||
|
||
cache: yarn | ||
|
||
jobs: | ||
include: | ||
- node_js: "10" | ||
- node_js: '10' | ||
env: TEST_SUITE=lint | ||
- node_js: '12' | ||
allow_failures: | ||
- node_js: '12' | ||
|
||
# Don't run builds for renovate PRs | ||
if: NOT head_branch =~ ^renovate | ||
|
||
script: | ||
- if [ "$TEST_SUITE" == "lint" ]; then yarn run lint; else yarn run test:all; fi | ||
script: | | ||
if [ "$TEST_SUITE" == "lint" ]; then | ||
yarn lint | ||
elif [ "$TRAVIS_NODE_VERSION" == "12" ]; then | ||
yarn test:unit | ||
GHOST_NODE_VERSION_CHECK=false yarn test:acceptance | ||
else | ||
yarn test:all | ||
fi | ||
after_success: | ||
- if [[ "$TRAVIS_NODE_VERSION" == "10" && "$TEST_SUITE" != "lint" ]]; then yarn run coverage; fi | ||
- if [[ "$TRAVIS_NODE_VERSION" == "10" && "$TEST_SUITE" != "lint" ]]; then yarn coverage; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters