Skip to content

Commit

Permalink
own script for running all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karhatsu committed May 4, 2014
1 parent 428e10b commit f0332f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 1 addition & 3 deletions deploy_to_production.sh
Expand Up @@ -3,9 +3,7 @@ set -e
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
./run_all_tests.sh
else
echo "No need to run tests."
fi
Expand Down
5 changes: 1 addition & 4 deletions deploy_to_staging.sh
@@ -1,9 +1,6 @@
#!/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
./run_all_tests.sh
git push staging master
heroku run rake db:migrate --app hirvitesti
heroku restart --app hirvitesti
Expand Down
6 changes: 6 additions & 0 deletions run_all_tests.sh
@@ -0,0 +1,6 @@
#!/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

0 comments on commit f0332f3

Please sign in to comment.