Skip to content

Commit

Permalink
Run jshint on TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
tobijat committed Nov 4, 2014
1 parent 45ff57b commit 0e5cd67
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ language: php
php:
- 5.3

env:
- RUNJOB=jshint
- RUNJOB=qunit

script: bash ./build/travis/script.sh

notifications:
Expand Down
12 changes: 10 additions & 2 deletions build/travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

set -x

cd lib/TestRunner
if [[ $RUNJOB == jshint ]]; then
npm install jshint
jshint src/ lib/ tests/
exit $?
fi

phantomjs runTests.phantom.js ../../tests/runTests.html
if [[ $RUNJOB == qunit ]]; then
cd lib/TestRunner
phantomjs runTests.phantom.js ../../tests/runTests.html
exit $?
fi

0 comments on commit 0e5cd67

Please sign in to comment.