Last active
March 13, 2019 18:02
-
-
Save xraymemory/84c4b564402791b8b37eab981677dfa6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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