forked from thewca/worldcubeassociation.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
22 lines (21 loc) · 822 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
language: ruby
cache: bundler
rvm:
- 2.2.3
env:
- DATABASE_URL=mysql2://[email protected]:3306/wca_test
before_install:
# Travis has an old install of PhantomJS without .bind() support, here we upgrade to
# version 2.0.0
# From https://mediocre.com/forum/topics/phantomjs-2-and-travis-ci-we-beat-our-heads-against-a-wall-so-you-dont-have-to
- mkdir travis-phantomjs
- wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs
- export PATH=$PWD/travis-phantomjs:$PATH
- cd WcaOnRails/
before_script:
- bundle exec rake db:reset RAILS_ENV=test
sudo: false
script:
- bundle exec rake
- bundle exec pre-commit run git