Add a script/cibuild script to control the build

I don't really enjoy doing inline shell scripting in .travis.yml
This commit is contained in:
Matt Rogers 2018-01-03 11:46:07 -06:00
parent e75cfd6ee8
commit c53a5ad1f2
2 changed files with 9 additions and 1 deletions

View file

@ -15,7 +15,7 @@ before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "cp config/site.yml.tmpl config/site.yml"
script: "if [[ $DATABASE_URL == mysql* ]]; then bundle exec rake ci:full; else bundle exec rake ci:lite; fi"
script: script/cibuild
notifications:
email: false
irc:

8
script/cibuild Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
if [[ "$DATABASE_URL" == 'mysql*' ]]
then
bundle exec rake ci:full
else
bundle exec rake ci:lite
fi