Skip to content

Commit 2db8716

Browse files
committed
switch quoting so that shell variables can be extended at runtime
1 parent 554fe62 commit 2db8716

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ env:
2323

2424
# execute any number of scripts before the test run, custom env's are available as variables
2525
before_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

0 commit comments

Comments
 (0)