Skip to content

Instantly share code, notes, and snippets.

@xraymemory
Last active March 13, 2019 18:02
Show Gist options
  • Select an option

  • Save xraymemory/84c4b564402791b8b37eab981677dfa6 to your computer and use it in GitHub Desktop.

Select an option

Save xraymemory/84c4b564402791b8b37eab981677dfa6 to your computer and use it in GitHub Desktop.
services:
- name: postgres
image: postgres:9-alpine
pull: never
ports:
- 5432
environment:
POSTGRES_USER: postgres
POSTGRES_DB: test
pipeline:
test:
image: 'ecr.url/image'
environment:
LL_DATABASE_URL: '$${LL_DATABASE_URL}'
LL_DATABASE_URL_REPLICA: '$${LL_DATABASE_URL_REPLICA}'
LL_SECRET_KEY: '$${LL_SECRET_KEY}'
LL_SHARED_SECRET_KEY: '$${LL_SHARED_SECRET_KEY}'
secrets:
- LL_DATABASE_URL
- LL_DATABASE_URL_REPLICA
- LL_SECRET_KEY
- LL_SHARED_SECRET_KEY
commands:
- 'mkdir /drone/logs/'
- 'touch /drone/logs/api.log'
- 'sleep 40'
- 'python3 -m pytest --cov --create-db'
- 'python3 manage.py makemigrations --check --dry-run'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment