1
0
mirror of synced 2024-11-22 04:26:01 +03:00

Fix test running in Jenkins

This commit is contained in:
Ilyas Salikhov 2018-05-25 18:17:31 +03:00
parent c9d6459b9f
commit ce7f72d4b9
2 changed files with 4 additions and 4 deletions

2
Jenkinsfile vendored
View File

@ -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'
}
}

View File

@ -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