Fix test running in Jenkins
This commit is contained in:
parent
c9d6459b9f
commit
ce7f72d4b9
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -16,7 +16,7 @@ pipeline {
|
||||
stage('Prepare') {
|
||||
steps {
|
||||
sh 'cp config_test.yml.dist config_test.yml'
|
||||
compose 'up -d --build postgres_test'
|
||||
compose 'up -d --build postgres'
|
||||
compose 'run --rm mg_telegram make migrate_test'
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
version: '2.1'
|
||||
|
||||
services:
|
||||
postgres_test:
|
||||
postgres:
|
||||
image: postgres:9.6
|
||||
environment:
|
||||
POSTGRES_USER: mg_telegram_test
|
||||
@ -10,13 +10,13 @@ services:
|
||||
ports:
|
||||
- ${POSTGRES_ADDRESS:-127.0.0.1:5450}:${POSTGRES_PORT:-5450}
|
||||
|
||||
mg_telegram_test:
|
||||
mg_telegram:
|
||||
image: golang:1.9.3-stretch
|
||||
working_dir: /mg_telegram
|
||||
user: ${UID:-1000}:${GID:-1000}
|
||||
volumes:
|
||||
- ./:/mg_telegram/
|
||||
links:
|
||||
- postgres_test
|
||||
- postgres
|
||||
ports:
|
||||
- ${MG_TELEGRAM_ADDRESS:-3002}:3002
|
||||
|
Loading…
Reference in New Issue
Block a user