forked from masao/enju_loc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1.03 KB
/
.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
cache: bundler
rvm:
- 2.5.8
- 2.6.6
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
- psql -c 'create database enju_loc_dummy_test;' -U postgres
- psql enju_loc_dummy_test -c 'CREATE EXTENSION pgcrypto'
- bundle exec rake db:migrate
- bundle exec rake app:sunspot:solr:start
script:
- bundle exec rspec
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
services:
- redis-server
env:
- DB=postgresql
gemfile:
- gemfiles/rails.gemfile
- gemfiles/rails_ndl.gemfile
- gemfiles/rails_nii.gemfile
notifications:
slack:
secure: rsdAy+UmEvL1DU2TIAS27NjH9MVH0xuyWyoX59MIfRaeCm9AtirT6ZyZMhfljE9w+r8m9KGrFVGp/oNAXevjLdzvxin2R4VjEeBtK2PEBQA7EoAnJuHY8UvrE/t4TflM96ChnmaYSRx9aawRN9j5QqwIGMPOoG3KqVEDLW2uNq0=
sudo: false
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
jdk:
- openjdk8
dist: xenial