mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01: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:
|
web:
|
||||||
build: .
|
build: .
|
||||||
environment:
|
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_USERNAME: root
|
||||||
DATABASE_PASSWORD_EMPTY: 1
|
DATABASE_PASSWORD_EMPTY: 1
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,10 @@ function die() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
export RAILS_ENV=test
|
export RAILS_ENV=test
|
||||||
export TRACKS_DB=tracks_test
|
export DATABASE_NAME=tracks_test
|
||||||
|
|
||||||
# Put a config/site.yml file in place since it's needed for operation
|
|
||||||
cp config/site.yml.tmpl config/site.yml
|
|
||||||
|
|
||||||
$docker_compose build
|
$docker_compose build
|
||||||
$docker_compose up -d
|
$docker_compose up -d
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue