File tree 1 file changed +16
-16
lines changed 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change 62
62
bin/phpspec run --config=phpspec.yml --bootstrap=./vendor/autoload.php --no-interaction --format=pretty
63
63
fi
64
64
65
- # echo "*** [${this_script}] Running examples"
66
- # pushd examples
67
- # for example in $(ls *.php); do
68
- # echo "*** [${this_script}] Running ${example} with PHP ${version}"
69
- # php ${example} --key ${ROSETTE_API_KEY} > "${example}-output.txt" 2>&1
70
- # # Disable error mode for grep
71
- # set +e
72
- # if grep -q Exception "${example}-output.txt"; then
73
- # echo "*** [${this_script}] ${example} failed!"
74
- # cat "${example}-output.txt"
75
- # rm -f "${example}-output.txt"
76
- # exit 1
77
- # fi
78
- # set -e
79
- # rm -f "${example}-output.txt"
80
- # done
65
+ echo " *** [${this_script} ] Running examples"
66
+ pushd examples
67
+ for example in $( ls * .php) ; do
68
+ echo " *** [${this_script} ] Running ${example} with PHP ${version} "
69
+ php ${example} --key ${ROSETTE_API_KEY} > " ${example} -output.txt" 2>&1
70
+ # Disable error mode for grep
71
+ set +e
72
+ if grep -q Exception " ${example} -output.txt" ; then
73
+ echo " *** [${this_script} ] ${example} failed!"
74
+ cat " ${example} -output.txt"
75
+ rm -f " ${example} -output.txt"
76
+ exit 1
77
+ fi
78
+ set -e
79
+ rm -f " ${example} -output.txt"
80
+ done
81
81
82
82
echo " *** [${this_script} ] Finished!"
You can’t perform that action at this time.
0 commit comments