forked from openaustralia/theyvoteforyou
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (26 loc) · 936 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
language: ruby
dist: focal
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y tidy
- gem install bundler
before_script:
# TODO: Reinstate brakeman as soon as we've upgrade to rails 5.2
# - bundle exec brakeman -z
- cp config/secrets.yml.example config/secrets.yml
- cp config/database.travis.yml config/database.yml
- bundle exec rake db:create
- bundle exec rake db:schema:load
# But we want to have an empty test database to start with (not populated by seeds.rb)
- bundle exec rake db:test:prepare
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter -d before-build
script:
- bundle exec rake
# Also fail if rubocop is unhappy
- bundle exec rubocop
after_script:
- ./cc-test-reporter -d after-build -t simplecov --exit-code $TRAVIS_TEST_RESULT
services:
- mysql