2019-07-07 11:18:12 +05:30
|
|
|
test:
|
|
|
|
services:
|
2020-03-09 13:42:32 +05:30
|
|
|
- "postgres:${POSTGRES_VERSION}"
|
2019-07-07 11:18:12 +05:30
|
|
|
variables:
|
|
|
|
POSTGRES_DB: test
|
|
|
|
stage: test
|
|
|
|
image: gliderlabs/herokuish:latest
|
|
|
|
script:
|
|
|
|
- |
|
|
|
|
if [ -z ${KUBERNETES_PORT+x} ]; then
|
|
|
|
DB_HOST=postgres
|
|
|
|
else
|
|
|
|
DB_HOST=localhost
|
|
|
|
fi
|
|
|
|
- export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DB_HOST}:5432/${POSTGRES_DB}"
|
|
|
|
- cp -R . /tmp/app
|
|
|
|
- /bin/herokuish buildpack test
|
|
|
|
only:
|
|
|
|
- branches
|
|
|
|
- tags
|
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $TEST_DISABLED
|