aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml52
-rw-r--r--svg-flatten/svg-flatten-wasi-ci.yml6
2 files changed, 43 insertions, 15 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
diff --git a/svg-flatten/svg-flatten-wasi-ci.yml b/svg-flatten/svg-flatten-wasi-ci.yml
index e89f799..7a70580 100644
--- a/svg-flatten/svg-flatten-wasi-ci.yml
+++ b/svg-flatten/svg-flatten-wasi-ci.yml
@@ -1,5 +1,5 @@
-build:wasi-svg-flatten:
+build:svg-flatten-wasi:
stage: build
image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest"
script:
@@ -14,7 +14,7 @@ build:wasi-svg-flatten:
paths:
- svg-flatten/dist/*.whl
-publish:wasi-svg-flatten:
+publish:svg-flatten-wasi:
stage: publish
variables:
GIT_SUBMODULE_STRATEGY: none
@@ -25,6 +25,6 @@ publish:wasi-svg-flatten:
- export TWINE_USERNAME TWINE_PASSWORD
- ~/.local/bin/twine upload svg-flatten/dist/*
dependencies:
- - build:wasi-svg-flatten
+ - build:svg-flatten-wasi
only:
- /^v.*$/