Skip to content

Commit

Permalink
Merge branch 'TPA-1041' into 'master'
Browse files Browse the repository at this point in the history
Moves gitlab pipeline configuration from common repo to this repo

See merge request kount/third_party/kount-ris-python-sdk!7
  • Loading branch information
dharp-kount committed Dec 9, 2021
2 parents 086f15e + 415327b commit 8f6235f
Showing 1 changed file with 19 additions and 31 deletions.
50 changes: 19 additions & 31 deletions .gitlab-ci.yml
@@ -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

0 comments on commit 8f6235f

Please sign in to comment.