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') {
|
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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user