Skip to content

Commit 2bd4e79

Browse files
committedApr 23, 2022
Waste even fewer CPU cycles in CI
It is fine to run the linter and install Karma only on one version of Node.js.
1 parent aca966a commit 2bd4e79

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎.travis.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ jobs:
1515
- DOWNGRADE=false
1616
- EXTRA=true
1717
before_install:
18-
- npm install -g karma-cli
18+
- "[ $EXTRA = false ] || npm install -g karma-cli"
1919
before_script:
20-
- npm install karma-sauce-launcher
20+
- "[ $EXTRA = false ] || npm install karma-sauce-launcher"
2121
- "[ $DOWNGRADE = false ] || npm install rollup@1"
2222
script:
23-
- "[ $EXTRA = true ] || npm test"
23+
- "[ $EXTRA = false ] || npm run lint"
24+
- "[ $EXTRA = true ] || npm run test-node"
2425
- "[ $EXTRA = false ] || npm run coveralls"
2526
- "[ $EXTRA = false ] || npm run test-browser"
2627
- "[ $EXTRA = false ] || karma start karma.conf-sauce.js"

0 commit comments

Comments
 (0)
Please sign in to comment.