This repository has been archived by the owner on Mar 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overhaul the Travis config to fix builds
- Loading branch information
1 parent
5154373
commit 72bd126
Showing
2 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
|
||
# Language/versions | ||
# Build matrix | ||
language: node_js | ||
node_js: | ||
- "5" | ||
- "4" | ||
- "0.12" | ||
- "0.10" | ||
matrix: | ||
include: | ||
|
||
# Run linter once | ||
- node_js: '5' | ||
env: LINT=true | ||
|
||
# Run tests | ||
- node_js: '0.10' | ||
- node_js: '0.12' | ||
- node_js: '4' | ||
- node_js: '5' | ||
|
||
# Restrict builds on branches | ||
branches: | ||
only: | ||
- master | ||
- /^\d+\.\d+\.\d+$/ | ||
|
||
# Before install | ||
before_install: | ||
- npm install coveralls | ||
|
||
# Build script | ||
script: | ||
- make ci | ||
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls | ||
- 'if [ $LINT ]; then make lint; fi' | ||
- 'if [ ! $LINT ]; then make test; fi' | ||
- 'if [ ! $LINT ]; then cat ./coverage/lcov.info | ./node_modules/.bin/coveralls; fi' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters