[ci/cd] stages

This commit is contained in:
Maxime Alves LIRMM 2022-02-10 15:12:57 +01:00
parent 90203b2edf
commit a1c1bf04df
1 changed files with 9 additions and 2 deletions

View File

@ -27,7 +27,12 @@ cache:
- .cache/pip
- venv/
stages:
- test
- build
test:
stage: test
script:
- apt-get update && apt-get -y install python3-venv
- python3 -V # Print out python version for debugging
@ -37,7 +42,8 @@ test:
- PYTHONPATH=./tests/ pipenv run pytest -v ./tests
- pipenv run halfapi --version
run:
build_pypi:
stage: build
script:
- apt-get update && apt-get -y install python3-venv
- python3 -V # Print out python version for debugging
@ -49,7 +55,8 @@ run:
paths:
- dist/*.whl
build:
build_container:
stage: build
image: $CI_REGISTRY/devtools/kaniko
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json