Skip to content

Commit

Permalink
chore(ci): support semanitic-release (#277)
Browse files Browse the repository at this point in the history
lint commits via husky and travis

BREAKING CHANGE: drop support for nodejs <8
  • Loading branch information
johnjbarton committed Apr 14, 2020
1 parent bc0b17b commit caba218
Show file tree
Hide file tree
Showing 4 changed files with 12,303 additions and 9 deletions.
19 changes: 13 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
language: node_js
node_js:
- 6
- 8
- 10
- stable
- 12

before_install:
- npm config set loglevel warn

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
services:
- xvfb

script:
- commitlint-travis
- npm test

after_success:
# run automated release process with semantic-release
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "push" && "$TRAVIS_NODE_VERSION" == "12" ]]; then
semantic-release;
fi;

0 comments on commit caba218

Please sign in to comment.