1
0
mirror of synced 2024-11-25 13:16:02 +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') { stage('Prepare') {
steps { steps {
sh 'cp config_test.yml.dist config_test.yml' 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' compose 'run --rm mg_telegram make migrate_test'
} }
} }

View File

@ -1,7 +1,7 @@
version: '2.1' version: '2.1'
services: services:
postgres_test: postgres:
image: postgres:9.6 image: postgres:9.6
environment: environment:
POSTGRES_USER: mg_telegram_test POSTGRES_USER: mg_telegram_test
@ -10,13 +10,13 @@ services:
ports: ports:
- ${POSTGRES_ADDRESS:-127.0.0.1:5450}:${POSTGRES_PORT:-5450} - ${POSTGRES_ADDRESS:-127.0.0.1:5450}:${POSTGRES_PORT:-5450}
mg_telegram_test: mg_telegram:
image: golang:1.9.3-stretch image: golang:1.9.3-stretch
working_dir: /mg_telegram working_dir: /mg_telegram
user: ${UID:-1000}:${GID:-1000} user: ${UID:-1000}:${GID:-1000}
volumes: volumes:
- ./:/mg_telegram/ - ./:/mg_telegram/
links: links:
- postgres_test - postgres
ports: ports:
- ${MG_TELEGRAM_ADDRESS:-3002}:3002 - ${MG_TELEGRAM_ADDRESS:-3002}:3002