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

Commit

Permalink
Merge pull request #48 from stubailo/linter-in-test-script
Browse files Browse the repository at this point in the history
Add linter to test script
  • Loading branch information
Sashko Stubailo committed Jun 22, 2015
2 parents de14314 + 528721b commit b9a606d
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
#! /bin/bash

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

jshint $DIR

result=$?
if [[ $result != 0 ]]
# Exit if the linter didn't pass
then exit $result
fi

meteor test-packages \
"$(pwd)/packages/rest" \
"$(pwd)/packages/json-routes" \
"$(pwd)/packages/rest-bearer-token-parser" \
"$(pwd)/packages/authenticate-user-by-token" \
"$(pwd)/packages/rest-accounts-password"
"$DIR/packages/rest" \
"$DIR/packages/json-routes" \
"$DIR/packages/rest-bearer-token-parser" \
"$DIR/packages/authenticate-user-by-token" \
"$DIR/packages/rest-accounts-password"

0 comments on commit b9a606d

Please sign in to comment.