-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (31 loc) · 966 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
language: ruby
rvm:
- 2.6.1
gemfile:
- src/ja_lancei/Gemfile
env:
global:
CC_TEST_REPORTER_ID=4a235ce1768d1b456f5cb90fcf4f953eba7659f0478026831574e5692c2f0baa
before_install:
- cd ./src/ja_lancei
- gem install rails
- gem update --system
- gem install bundler
- bundle install
- psql -c 'create database ja_lancei_development;' -U postgres
- psql -c 'create database ja_lancei_test;' -U postgres
- psql -c 'CREATE USER railsuser SUPERUSER INHERIT CREATEDB CREATEROLE' -U postgres
- psql -c "alter user railsuser with password 'Rails@123'" -U postgres
install:
- bundle install
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
script:
- rails db:migrate
- bundle exec rake
services:
- postgresql
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT