|
@ -1,8 +1,3 @@ |
|
|
# This is a sample build configuration for Python. |
|
|
|
|
|
# Check our guides at https://confluence.atlassian.com/x/x4UWN for more examples. |
|
|
|
|
|
# Only use spaces to indent your .yml configuration. |
|
|
|
|
|
# ----- |
|
|
|
|
|
# You can specify a custom docker image from Docker Hub as your build environment. |
|
|
|
|
|
image: python:3.7 |
|
|
image: python:3.7 |
|
|
|
|
|
|
|
|
pipelines: |
|
|
pipelines: |
|
@ -11,6 +6,12 @@ pipelines: |
|
|
name: Tests |
|
|
name: Tests |
|
|
caches: |
|
|
caches: |
|
|
- pip |
|
|
- pip |
|
|
script: # Modify the commands below to build your repository. |
|
|
|
|
|
|
|
|
script: |
|
|
- pip install -r requirements.txt |
|
|
- pip install -r requirements.txt |
|
|
- python3 -m unittest discover |
|
|
- python3 -m unittest discover |
|
|
|
|
|
tags: |
|
|
|
|
|
'*': |
|
|
|
|
|
- step: |
|
|
|
|
|
name: Release New Verison |
|
|
|
|
|
script: |
|
|
|
|
|
- ./bin/deploy.sh |