aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-06-11 22:22:29 +0200
committerjaseg <git@jaseg.de>2022-06-11 22:22:29 +0200
commit527fbca7f51389a28ab20d5949f7190113f25832 (patch)
treeb2bd0edcf4859e686a1cca392d759ef23a1526c4 /.gitlab-ci.yml
parent225e9b36316055e3d463ec1771a9bfacbc505e2e (diff)
downloadgerbolyze-527fbca7f51389a28ab20d5949f7190113f25832.tar.gz
gerbolyze-527fbca7f51389a28ab20d5949f7190113f25832.tar.bz2
gerbolyze-527fbca7f51389a28ab20d5949f7190113f25832.zip
ci: build gerbolyze python package
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml52
1 files changed, 40 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d7d7e1e..f1776eb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,7 +9,35 @@ stages:
include:
- local: "/svg-flatten/svg-flatten-wasi-ci.yml"
-build:debian_10:
+build:gerbolyze:
+ stage: build
+ image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest"
+ variables:
+ GIT_SUBMODULE_STRATEGY: none
+ script:
+ - git config --global --add safe.directory "$CI_PROJECT_DIR"
+ - pip3 install --user wheel
+ - python3 setup.py bdist_wheel
+ artifacts:
+ name: "gerbolyze-$CI_COMMIT_REF_NAME-gerbolyze"
+ paths:
+ - dist/*.whl
+
+publish:gerbolyze:
+ stage: publish
+ variables:
+ GIT_SUBMODULE_STRATEGY: none
+ image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest"
+ cache: {}
+ script:
+ - export TWINE_USERNAME TWINE_PASSWORD
+ - twine upload dist/*
+ dependencies:
+ - build:gerbolyze
+ only:
+ - /^v.*$/
+
+build:svg-flatten-debian_10:
stage: build
image: "registry.gitlab.com/gerbolyze/build-containers/debian:10"
script:
@@ -21,7 +49,7 @@ build:debian_10:
- svg-flatten/build/svg-flatten
- svg-flatten/build/nopencv-test
-test:debian_10:
+test:svg-flatten-debian_10:
stage: test
variables:
GIT_SUBMODULE_STRATEGY: none
@@ -34,7 +62,7 @@ test:debian_10:
- "gerbolyze --help"
- "make -C svg-flatten tests"
dependencies:
- - build:debian_10
+ - build:svg-flatten-debian_10
artifacts:
name: "gerbolyze-$CI_COMMIT_REF_NAME-test-deb10"
when: on_failure
@@ -42,7 +70,7 @@ test:debian_10:
- svg-flatten/testcase-fails/*.png
- svg-flatten/testcase-fails/*.svg
-build:ubuntu_2004:
+build:svg-flatten-ubuntu_2004:
stage: build
image: "registry.gitlab.com/gerbolyze/build-containers/ubuntu:20.04"
script:
@@ -54,7 +82,7 @@ build:ubuntu_2004:
- svg-flatten/build/svg-flatten
- svg-flatten/build/nopencv-test
-test:ubuntu_2004:
+test:svg-flatten-ubuntu_2004:
stage: test
variables:
GIT_SUBMODULE_STRATEGY: none
@@ -67,7 +95,7 @@ test:ubuntu_2004:
- "gerbolyze --help"
- "make -C svg-flatten tests"
dependencies:
- - build:ubuntu_2004
+ - build:svg-flatten-ubuntu_2004
artifacts:
name: "gerbolyze-$CI_COMMIT_REF_NAME-test-ubu20"
when: on_failure
@@ -75,7 +103,7 @@ test:ubuntu_2004:
- svg-flatten/testcase-fails/*.png
- svg-flatten/testcase-fails/*.svg
-build:fedora_33:
+build:svg-flatten-fedora_33:
stage: build
image: "registry.gitlab.com/gerbolyze/build-containers/fedora:33"
script:
@@ -87,7 +115,7 @@ build:fedora_33:
- svg-flatten/build/svg-flatten
- svg-flatten/build/nopencv-test
-test:fedora_33:
+test:svg-flatten-fedora_33:
stage: test
variables:
GIT_SUBMODULE_STRATEGY: none
@@ -100,7 +128,7 @@ test:fedora_33:
- "gerbolyze --help"
- "make -C svg-flatten tests"
dependencies:
- - build:fedora_33
+ - build:svg-flatten-fedora_33
artifacts:
name: "gerbolyze-$CI_COMMIT_REF_NAME-test-fed33"
when: on_failure
@@ -108,7 +136,7 @@ test:fedora_33:
- svg-flatten/testcase-fails/*.png
- svg-flatten/testcase-fails/*.svg
-build:archlinux:
+build:svg-flatten-archlinux:
stage: build
image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest"
script:
@@ -119,7 +147,7 @@ build:archlinux:
- svg-flatten/build/svg-flatten
- svg-flatten/build/nopencv-test
-test:archlinux:
+test:svg-flatten-archlinux:
stage: test
variables:
GIT_SUBMODULE_STRATEGY: none
@@ -132,7 +160,7 @@ test:archlinux:
- "gerbolyze --help"
- "make -C svg-flatten tests"
dependencies:
- - build:archlinux
+ - build:svg-flatten-archlinux
artifacts:
name: "gerbolyze-$CI_COMMIT_REF_NAME-test-arch"
when: on_failure