Skip to content

Commit

Permalink
run tests forwards & backwards on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Nov 26, 2014
1 parent 9f549d9 commit a0892a6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions scripts/run-js-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
# Run either as:
# ./scripts/run-js-tests.sh
# ./scripts/run-js-tests.sh reversed


if [ "$1" == 'reversed' ]; then
files=$(ls tests/js/*-test.js | perl -e 'print reverse <>')
else
files=$(ls tests/js/*-test.js)
fi

./node_modules/.bin/mocha --compilers .:tests/js/preprocessor.js $files
5 changes: 4 additions & 1 deletion scripts/travis-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ set -o errexit
. ./ENV.sh
nosetests tests/python

npm test
./scripts/run-js-tests.sh
echo 'Running tests in reverse...'
./scripts/run-js-tests.sh reversed

echo 'Linting...'
./scripts/lint.sh
./scripts/travis-coverage.sh

0 comments on commit a0892a6

Please sign in to comment.