gerbonara/.gitlab-ci.yml
jaseg 0d21c171d3
Some checks failed
pcb-tools / test (3.5) (push) Has been cancelled
pcb-tools / test (3.6) (push) Has been cancelled
pcb-tools / test (3.7) (push) Has been cancelled
pcb-tools / test (3.8) (push) Has been cancelled
pcb-tools / coverage (push) Has been cancelled
CI WIP
2022-02-06 20:42:46 +01:00

48 lines
1 KiB
YAML

variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- test
- publish
build:debian_10:
stage: build
image: "registry.gitlab.com/gerbolyze/build-containers/debian:10"
variables:
GIT_SUBMODULE_STRATEGY: none
script:
- python3 setup.py bdist_wheel
artifacts:
name: "gerbolyze-$CI_COMMIT_REF_NAME-gerbonara"
paths:
- dist/*.whl
test:debian_10:
stage: test
image: "registry.gitlab.com/gerbolyze/build-containers/debian:10"
script:
- "pytest -o 'testpaths=gerbonara/tests' -o 'norecursedirs=*'"
dependencies:
- build:debian_10
artifacts:
name: "gerbolyze-$CI_COMMIT_REF_NAME-gerbonara"
when: on_failure
paths:
- gerbonara_test_failures/*
publish:gerbonara:
stage: publish
variables:
GIT_SUBMODULE_STRATEGY: none
image: "registry.gitlab.com/gerbolyze/build-containers/debian:10"
cache: {}
script:
- pip install -U --user twine
- export TWINE_USERNAME TWINE_PASSWORD
- ~/.local/bin/twine upload dist/*
dependencies:
- build:debian_10
only:
- /^v.*$/