Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'TPA-1041' into 'master'
Moves gitlab pipeline configuration from common repo to this repo See merge request kount/third_party/kount-ris-python-sdk!7
- Loading branch information
Showing
1 changed file
with
19 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,27 @@ | ||
# This file is a template, and needs editing before it works on your project. | ||
# More information can be found here: https://confluence.kount.com/display/PAAS/GitLab | ||
# image: python:3.6-alpine - Remove dependecies | ||
image: python:3.8-slim-buster | ||
|
||
stages: | ||
- test | ||
- build | ||
- deploy | ||
|
||
default: | ||
image: | ||
name: 894779965274.dkr.ecr.us-west-2.amazonaws.com/kount/terraform:0.12.9-0d8ee080 | ||
entrypoint: [""] | ||
|
||
variables: | ||
# Add any variables requiered by pipeline | ||
REPO_NAME: https://gitlab.gs.kount.com/Elijah.Roberts/testing | ||
before_script: | ||
# - apk update && apk add gcc python3-dev musl-dev libffi-dev | ||
- pip install --upgrade pip | ||
- pip install twine | ||
- pip install pytest | ||
- python setup.py sdist bdist_wheel | ||
|
||
|
||
|
||
test: | ||
stage: test | ||
tags: | ||
- shared-infra | ||
script: | ||
- echo "run your test steps here" | ||
|
||
compile: | ||
stage: build | ||
tags: | ||
- shared-infra | ||
script: | ||
- echo "here you can can build a package" | ||
artifacts: | ||
paths: | ||
- pathtomybinary | ||
|
||
apply: | ||
deploy_production: | ||
stage: deploy | ||
tags: | ||
- shared-infra | ||
variables: | ||
TWINE_USERNAME: $PYPI_USERNAME | ||
TWINE_PASSWORD: $PYPI_PASSWORD | ||
script: | ||
- echo "deploy commands here" | ||
- twine upload dist/* | ||
only: | ||
- tags | ||
|