Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not run tests if all passed for the latest commit already
- Loading branch information
Showing
2 changed files
with
11 additions
and
11 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
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,6 +1,12 @@ | ||
#!/bin/sh | ||
set -e | ||
spring rspec spec | ||
spring cucumber --format progress features | ||
spring cucumber -p js --format progress features | ||
git rev-list --max-count=1 HEAD > STABLE_COMMIT | ||
if [ "$(cat STABLE_COMMIT)" != "$(git rev-list --max-count=1 HEAD)" ] | ||
then | ||
echo "Running all tests..." | ||
spring rspec spec | ||
spring cucumber --format progress features | ||
spring cucumber -p js --format progress features | ||
git rev-list --max-count=1 HEAD > STABLE_COMMIT | ||
else | ||
echo "No need to run tests." | ||
fi |