Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
ci: add commit lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines authored and mergify[bot] committed Sep 16, 2019
1 parent 61562eb commit 137cb3a
Show file tree
Hide file tree
Showing 3 changed files with 315 additions and 62 deletions.
4 changes: 4 additions & 0 deletions ci/travis-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

set -ex

if [[ $TRAVIS_PULL_REQUEST != false ]]; then
npx commitlint-travis
fi

npm run lint

if [[ $TRAVIS_PULL_REQUEST = false && $TRAVIS_OS_NAME = osx ]]; then
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
"@babel/polyfill": "^7.6.0",
"@babel/preset-env": "^7.5.5",
"@babel/preset-react": "^7.0.0",
"@commitlint/config-conventional": "^8.1.0",
"@commitlint/travis-cli": "^8.1.0",
"@electron-forge/cli": "6.0.0-beta.45",
"@electron-forge/maker-deb": "6.0.0-beta.45",
"@electron-forge/maker-dmg": "^6.0.0-beta.45",
Expand Down
Loading

0 comments on commit 137cb3a

Please sign in to comment.