Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Commit

Permalink
Overhaul the Travis config to fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanmanning committed Jan 9, 2016
1 parent 5154373 commit 72bd126
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
30 changes: 22 additions & 8 deletions .travis.yml
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'
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jscs:
@./node_modules/.bin/jscs .

# Run all tests
test: test-unit
test: test-coverage

# Run unit tests
test-unit:
Expand Down

0 comments on commit 72bd126

Please sign in to comment.