Few more settings in order for the CI test automation

This commit is contained in:
Jyri-Petteri Paloposki 2020-07-19 22:04:45 +03:00
parent b2ede09fe6
commit 5bb723329b
2 changed files with 4 additions and 5 deletions

View file

@ -10,6 +10,9 @@ services:
web:
build: .
environment:
# These are set in script/ci-build, so we need to pass-thru them.
RAILS_ENV: $RAILS_ENV
DATABASE_NAME: $DATABASE_NAME
DATABASE_USERNAME: root
DATABASE_PASSWORD_EMPTY: 1
volumes:

View file

@ -12,14 +12,10 @@ function die() {
exit 1
}
trap cleanup EXIT
export RAILS_ENV=test
export TRACKS_DB=tracks_test
# Put a config/site.yml file in place since it's needed for operation
cp config/site.yml.tmpl config/site.yml
export DATABASE_NAME=tracks_test
$docker_compose build
$docker_compose up -d