Skip to content

Commit

Permalink
update CircleCI config
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Aug 3, 2019
1 parent dda970b commit 9a0554b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ jobs:
build:
docker:
# specify the version you desire here
- image: circleci/ruby:2.5-node-browsers
- image: circleci/ruby:2.5-stretch-node-browsers
environment:
PGHOST: 127.0.0.1
PGUSER: postgres

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
- image: circleci/postgres:10
- image: circleci/postgres:11
environment:
POSTGRES_USER: postgres
POSTGRES_DB: enju_ndl_dummy_test
Expand Down Expand Up @@ -45,6 +45,10 @@ jobs:
# Database setup
- run:
command: dockerize -wait tcp://localhost:5432 -timeout 1m
- run:
command: sudo apt install -y openjdk-8-jre-headless
- run:
command: sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
- run: bundle exec rake db:create
- run: bundle exec rake db:schema:load
- run: bundle exec rake app:sunspot:solr:start RAILS_ENV=test
Expand Down

0 comments on commit 9a0554b

Please sign in to comment.