-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
27 lines (27 loc) · 859 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
env:
global:
- CC_TEST_REPORTER_ID=a9766133541de49ffe2d169861e1cb2ea7c532219851d91a175566239e35d824
language: ruby
rvm:
- 2.4.4
service:
- postgresql
postgres:
adapter: postgresql
database: postgresql
username: postgres
before_script:
- gem update --system
- cp config/database.yml.travis config/database.yml
- psql -c 'create database gemcounter_test;' -U postgres
- RAILS_ENV=test bundle exec rake db:migrate
- gem install bundler-audit
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- bundle exec rspec --format documentation
- bundle exec rubocop --config .rubocop.yml
- bundle-audit check --update
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT