-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
43 lines (32 loc) · 872 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
34
35
36
37
38
39
40
41
42
43
env:
global:
- CC_TEST_REPORTER_ID=8f5dfce9d78ea2372029fc420b6dda3ab06367393706148814fb229e040b85fc
language: ruby
rvm:
- 2.5.1
sudo: required
dist: trusty
addons:
postgresql: 9.6
services:
- postgresql
cache:
bundler: true
yarn: true
before_script:
- cp config/application.yml.example config/application.yml
- bundle install
- psql -c 'create database prevy_test;' -U postgres
- 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 brakeman
- bundle exec bundle-audit
- bundle exec rake db:migrate RAILS_ENV=test
- xvfb-run -a bundle exec rake test
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
test:
adapter: postgresql
database: prevy_test