mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-09 18:58:51 +01:00
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:
parent
e75cfd6ee8
commit
c53a5ad1f2
2 changed files with 9 additions and 1 deletions
|
|
@ -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
8
script/cibuild
Executable 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue