Travis should lint & bundle before every build (#1441)
Linting doesn't break builds though, because @lhorie doesn't want that.
This commit is contained in:
parent
5f08c278ec
commit
9406c905c0
1 changed files with 7 additions and 2 deletions
|
|
@ -13,6 +13,12 @@ install:
|
||||||
- npm install
|
- npm install
|
||||||
- npm install @alrra/travis-scripts@^3.0.1
|
- npm install @alrra/travis-scripts@^3.0.1
|
||||||
|
|
||||||
|
# Lint (but don't fail build) before running tests
|
||||||
|
before_script: npm run lint || true
|
||||||
|
|
||||||
|
# Run more than just npm test
|
||||||
|
script: npm run build && npm test
|
||||||
|
|
||||||
# After a successful build create bundles & commit back to the repo
|
# After a successful build create bundles & commit back to the repo
|
||||||
after_success:
|
after_success:
|
||||||
- |
|
- |
|
||||||
|
|
@ -29,8 +35,7 @@ after_success:
|
||||||
--path-encrypted-key "./.deploy.enc"
|
--path-encrypted-key "./.deploy.enc"
|
||||||
|
|
||||||
# Build & commit changes
|
# Build & commit changes
|
||||||
$(npm bin)/commit-changes --commands "npm run build" \
|
$(npm bin)/commit-changes --commit-message "Bundled output for commit $TRAVIS_COMMIT [skip ci]" \
|
||||||
--commit-message "Bundled output for commit $TRAVIS_COMMIT [skip ci]" \
|
|
||||||
--branch "$BRANCH"
|
--branch "$BRANCH"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue