forked from thewca/worldcubeassociation.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (30 loc) · 763 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
23
24
25
26
27
28
29
30
31
32
33
dist: trusty
sudo: false
language: ruby
bundler_args: --path $HOME/.bundle
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
- gem update --system
- 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
- bundle exec rake assets:precompile
script:
- bundle exec pre-commit run git
- bundle exec rubocop
- bundle exec rake