|
| 1 | +# This references the default Python container from |
| 2 | +# the Docker Hub with the 2.7 tag: |
| 3 | +# https://registry.hub.docker.com/_/python/ |
| 4 | +# If you want to use a slim Python container with |
| 5 | +# version 3.4.3 you would use: python:3.4-slim |
| 6 | +# If you want Google's container you would reference google/python |
| 7 | +# Read more about containers on our dev center |
| 8 | +# http://devcenter.wercker.com/docs/containers/index.html |
| 9 | +box: python:2.7 |
| 10 | +# You can also use services such as databases. Read more on our dev center: |
| 11 | +# http://devcenter.wercker.com/docs/services/index.html |
| 12 | +# services: |
| 13 | + # - postgres |
| 14 | + # http://devcenter.wercker.com/docs/services/postgresql.html |
| 15 | + |
| 16 | + # - mongodb |
| 17 | + # http://devcenter.wercker.com/docs/services/mongodb.html |
| 18 | + |
| 19 | +# This is the build pipeline. Pipelines are the core of wercker |
| 20 | +# Read more about pipelines on our dev center |
| 21 | +# http://devcenter.wercker.com/docs/pipelines/index.html |
| 22 | +build: |
| 23 | + # The steps that will be executed on build |
| 24 | + # Steps make up the actions in your pipeline |
| 25 | + # Read more about steps on our dev center: |
| 26 | + # http://devcenter.wercker.com/docs/steps/index.html |
| 27 | + steps: |
| 28 | + # A step that sets up the python virtual environment |
| 29 | + - virtualenv: |
| 30 | + name: setup virtual environment |
| 31 | + install_wheel: true # Enable wheel to speed up builds (experimental) |
| 32 | + |
| 33 | + # # Use this virtualenv step for python 3.2 |
| 34 | + # - virtualenv |
| 35 | + # name: setup virtual environment |
| 36 | + # python_location: /usr/bin/python3.2 |
| 37 | + |
| 38 | + # A step that executes `pip install` command. |
| 39 | + - pip-install |
| 40 | + |
| 41 | + # # This pip-install clears the local wheel cache |
| 42 | + # - pip-install: |
| 43 | + # clean_wheel_dir: true |
| 44 | + |
| 45 | + # A custom script step, name value is used in the UI |
| 46 | + # and the code value contains the command that get executed |
| 47 | + - script: |
| 48 | + name: echo python information |
| 49 | + code: | |
| 50 | + echo "python version $(python --version) running" |
| 51 | + echo "pip version $(pip --version) running" |
| 52 | +
|
| 53 | +deploy: |
| 54 | + steps: |
| 55 | + - heroku-deploy: |
| 56 | + key: $HEROKU_KEY |
| 57 | + key-name: HEROKU_KEY_PAIR |
| 58 | + user: $HEROKU_USER |
| 59 | + app-name: $HEROKU_APP_NAME |
0 commit comments