Skip to content

Commit

Permalink
[Tests] only run the linter once, not on every build
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 26, 2020
1 parent 1c7bb29 commit 2512b7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ env:
# osx backlog is often deep, so to be polite we can just hit these highlights
matrix:
include:
- env: LINT=true
node_js: lts/*
- env: PACKAGE=resolvers/node
node_js: 13
- env: PACKAGE=resolvers/node
Expand Down Expand Up @@ -81,7 +83,7 @@ install:
- 'if [ -n "${ESLINT_VERSION}" ]; then ./tests/dep-time-travel.sh; fi'

script:
- 'npm test'
- 'if [ -n "${LINT-}" ]; then npm run posttest ; else npm run mocha tests/src ; fi'

after_success:
- npm run coveralls

0 comments on commit 2512b7e

Please sign in to comment.