forked from RedHatInsights/catalog-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 987 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
dist: xenial
language: ruby
sudo: false
cache: bundler
rvm:
- 2.5.7
- 2.6.5
addons:
postgresql: '10'
env:
global:
- DATABASE_URL="postgresql://postgres:@localhost:5432/catalog_test?encoding=utf8&pool=5&wait_timeout=5"
jdk:
- openjdk8
before_install:
- 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"
- curl -L https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/bin/utils/openapi-generator-cli.sh
> ./openapi-generator-cli
- chmod +x ./openapi-generator-cli
- curl -L https://raw.githubusercontent.com/gmcculloug/insights-api-common-rails/master/.travis_scripts/openapi-validator.sh
> ./openapi-validator.sh
- chmod +x ./openapi-validator.sh
- ./openapi-validator.sh
- bundle exec rake db:create db:migrate
after_script:
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"