forked from RedHatInsights/sources-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
27 lines (27 loc) · 821 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
---
dist: xenial
language: ruby
cache: bundler
rvm:
- 2.5.7
- 2.6.5
addons:
postgresql: '10'
env:
global:
- DATABASE_URL="postgresql://postgres:@localhost:5432/sources_api_test?encoding=utf8&pool=5&wait_timeout=5"
jdk:
- openjdk8
before_install:
- 'echo ''gem: --no-ri --no-rdoc --no-document'' > ~/.gemrc'
- gem install bundler
before_script:
- 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"
- cp ./v2_key.dev ./v2_key
- curl -sSL https://raw.githubusercontent.com/RedHatInsights/insights-api-common-rails/master/.travis_scripts/openapi-validator.sh | bash -s
- bundle exec rake db:create db:migrate
after_script:
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"