forked from thewca/worldcubeassociation.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (28 loc) · 1.03 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: ruby
cache:
directories:
- WcaOnRails/vendor/bundle
rvm:
- 2.3.1
env:
global:
- DATABASE_URL=mysql2://[email protected]:3306/wca_test
- PATH=$HOME/.local/bin:$PATH
before_install:
# The Stripe API requires a newer version of openssl
- sudo apt-get update && sudo apt-get install --only-upgrade openssl
# 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: required
script:
- bundle exec pre-commit run git
- bundle exec rubocop
- bundle exec rake