scripts/test_and_build.sh in rise-cli-0.2.9 vs scripts/test_and_build.sh in rise-cli-0.3.0

- old
+ new

@@ -1,15 +1,15 @@ -#!/bin/bash -cd .. -rspec -if [[ "$?" -ne "0" ]]; then - echo -e "\033[0;31mTests failed, not building the gem\033[0;0m" - exit $? -fi - -rubocop --fail-level W -if [[ "$?" -ne "0" ]]; then - echo -e "\033[0;31mRubocop failed, not building the gem\033[0;0m" - exit $? -fi - -rake build +#!/bin/bash +cd .. +rspec +if [[ "$?" -ne "0" ]]; then + echo -e "\033[0;31mTests failed, not building the gem\033[0;0m" + exit $? +fi + +rubocop --fail-level W +if [[ "$?" -ne "0" ]]; then + echo -e "\033[0;31mRubocop failed, not building the gem\033[0;0m" + exit $? +fi + +rake build