Use configure_bundler script on travis
This commit is contained in:
parent
a14115119c
commit
4e267bb1ef
3 changed files with 12 additions and 11 deletions
|
|
@ -24,14 +24,12 @@ branches:
|
||||||
- 'develop'
|
- 'develop'
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- gem install bundler
|
- script/ci/prepare.sh
|
||||||
- mkdir travis-phantomjs
|
- mkdir travis-phantomjs
|
||||||
- wget http://cifiles.diasporafoundation.org/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
- wget http://cifiles.diasporafoundation.org/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
|
||||||
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
|
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
|
||||||
- export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
|
- export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
|
||||||
|
|
||||||
bundler_args: "--deployment --without development --with mysql postgresql --jobs 3 --retry 3"
|
|
||||||
|
|
||||||
script: "./script/ci/build.sh"
|
script: "./script/ci/build.sh"
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
# Create a database.yml for the right database
|
|
||||||
echo "Setting up database.yml for $DB"
|
|
||||||
cp config/database.yml.example config/database.yml
|
|
||||||
if [ "$DB" = "mysql" ]; then
|
|
||||||
sed -i 's/*common/*mysql/' config/database.yml
|
|
||||||
fi
|
|
||||||
|
|
||||||
command="bundle exec rake --trace ci:travis:${BUILD_TYPE}"
|
command="bundle exec rake --trace ci:travis:${BUILD_TYPE}"
|
||||||
|
|
||||||
exec xvfb-run --auto-servernum --server-num=1 --server-args="-screen 0 1280x1024x8" $command
|
exec xvfb-run --auto-servernum --server-num=1 --server-args="-screen 0 1280x1024x8" $command
|
||||||
|
|
|
||||||
11
script/ci/prepare.sh
Executable file
11
script/ci/prepare.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Create a database.yml for the right database
|
||||||
|
echo "Setting up database.yml for ${DB}"
|
||||||
|
cp config/database.yml.example config/database.yml
|
||||||
|
if [ "${DB}" = "mysql" ]; then
|
||||||
|
sed -i 's/*common/*mysql/' config/database.yml
|
||||||
|
fi
|
||||||
|
|
||||||
|
gem install bundler
|
||||||
|
script/configure_bundler
|
||||||
Loading…
Reference in a new issue