|
@ -4,11 +4,17 @@ rvm: |
|
|
before_install: |
|
|
before_install: |
|
|
- "export DISPLAY=:99.0" |
|
|
- "export DISPLAY=:99.0" |
|
|
- "sh -e /etc/init.d/xvfb start" |
|
|
- "sh -e /etc/init.d/xvfb start" |
|
|
|
|
|
- "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH" |
|
|
|
|
|
- "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi" |
|
|
|
|
|
- "if [ $(phantomjs --version) != '2.1.1' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi" |
|
|
|
|
|
- "if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi" |
|
|
|
|
|
- "phantomjs --version" |
|
|
before_script: |
|
|
before_script: |
|
|
- cp config/database.yml.travis config/database.yml |
|
|
- cp config/database.yml.travis config/database.yml |
|
|
- psql -c 'create database travis_ci_test;' -U postgres |
|
|
- psql -c 'create database travis_ci_test;' -U postgres |
|
|
# consider dumping sql via db:structure:dump then loading directly into psql |
|
|
# consider dumping sql via db:structure:dump then loading directly into psql |
|
|
# "psql -U postgres -q -d DB_NAME -f db/structure.sql" |
|
|
# "psql -U postgres -q -d DB_NAME -f db/structure.sql" |
|
|
|
|
|
- bundle exec rake bumbleberry:update |
|
|
- bundle exec rake assets:precompile |
|
|
- bundle exec rake assets:precompile |
|
|
- bundle exec rake db:test:prepare |
|
|
- bundle exec rake db:test:prepare |
|
|
script: bundle exec rake i18n |
|
|
script: bundle exec rake i18n |
|
|