File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2323
2424# execute any number of scripts before the test run, custom env's are available as variables
2525before_script :
26- - sh -c " if [[ ' $DB' == ' pgsql' ]]; then psql -c ' DROP DATABASE IF EXISTS hello_world_test;' -U postgres; fi"
27- - sh -c " if [[ ' $DB' == ' pgsql' ]]; then psql -c ' create database hello_world_test;' -U postgres; fi"
28- - sh -c " if [[ ' $DB' == ' mysql' ]]; then mysql -e ' create database IF NOT EXISTS hello_world_test;' -uroot; fi"
26+ - sh -c ' if [[ " $DB" == " pgsql" ]]; then psql -c " DROP DATABASE IF EXISTS hello_world_test;" -U postgres; fi'
27+ - sh -c ' if [[ " $DB" == " pgsql" ]]; then psql -c " create database hello_world_test;" -U postgres; fi'
28+ - sh -c ' if [[ " $DB" == " mysql" ]]; then mysql -e " create database IF NOT EXISTS hello_world_test;" -uroot; fi'
2929
3030# omitting "script:" will default to phpunit
3131# use the $DB env variable to determine the phpunit.xml to use
You can’t perform that action at this time.
0 commit comments