Skip to content

Commit

Permalink
Travis - Must use sh -c for any 'if' statements in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Dec 13, 2011
1 parent 4e08f6c commit 249a2be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ gemfile: Gemfile.ci

# Create database before testing
before_script:
- "if [ \"$DB\" = 'pgsql' ]; then psql -c 'create database fat_free_crm_test;' -U postgres; fi"
- "if [ \"$DB\" = 'mysql' ]; then mysql -e 'create database fat_free_crm_test;'; fi"

- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database fat_free_crm_test;' -U postgres; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database fat_free_crm_test;'; fi"
# Only build master branch
branches:
only:
Expand Down

0 comments on commit 249a2be

Please sign in to comment.