forked from thewca/worldcubeassociation.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (31 loc) · 1.02 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
30
31
32
33
34
dist: trusty
sudo: false
language: ruby
cache:
directories:
- $HOME/.phantomjs
- $HOME/.bundle
- WcaOnRails/node_modules
yarn: true
env:
global:
- DATABASE_URL=mysql2://root:@127.0.0.1:3306/wca_test
- RACK_ENV=test
before_install:
# Workaround for https://github.com/travis-ci/travis-ci/issues/8978
- yes | gem update --system
- yes | gem update bundler
- nvm install 8
- nvm use 8
# From https://yarnpkg.com/en/docs/install-ci#travis-tab
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- cd WcaOnRails/
before_script:
- bundle exec rake db:reset
# See https://github.com/usabilityhub/rails-erb-loader/issues/63#issuecomment-374791504
# and our https://github.com/thewca/worldcubeassociation.org/issues/3476
- DISABLE_SPRING=1 bundle exec rake assets:precompile
script:
- bundle exec overcommit --sign && bundle exec overcommit --sign pre-commit && (cd .. && BUNDLE_GEMFILE=WcaOnRails/Gemfile bundle exec overcommit --run)
- bundle exec rake