mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Few more settings in order for the CI test automation
This commit is contained in:
parent
b2ede09fe6
commit
5bb723329b
2 changed files with 4 additions and 5 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue