aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-09-26 15:45:09 +0200
committerjaseg <git@jaseg.de>2021-09-29 16:38:13 +0200
commit8a64621e8c8610a45884df82b46859bc3297d3e3 (patch)
tree4b6265bb01377e16e66dddeee8259f40ea86d562 /.gitlab-ci.yml
parent7eb0b9d7e42a20b85bd7afbfe3d33d9dd5fa5794 (diff)
downloadgerbolyze-8a64621e8c8610a45884df82b46859bc3297d3e3.tar.gz
gerbolyze-8a64621e8c8610a45884df82b46859bc3297d3e3.tar.bz2
gerbolyze-8a64621e8c8610a45884df82b46859bc3297d3e3.zip
CI/svg-flatten: add wasm builds
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml110
1 files changed, 103 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c066654..c90dfa5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,41 +2,137 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
+ - build
- test
+ - publish
-test_debian_10:
+include:
+ - local: "/svg-flatten/svg-flatten-wasi-ci.yml"
+
+build:debian_10:
+ stage: build
+ image: "registry.gitlab.com/gerbolyze/build-containers/debian:10"
+ script:
+ - "export CXX=clang++"
+ - "make -C svg-flatten"
+ artifacts:
+ name: "gerbolyze-$CI_COMMIT_REF_NAME-svg-flatten-deb10"
+ paths:
+ - svg-flatten/build/svg-flatten
+ - svg-flatten/build/nopencv-test
+
+test:debian_10:
stage: test
+ variables:
+ GIT_SUBMODULE_STRATEGY: none
image: "registry.gitlab.com/gerbolyze/build-containers/debian:10"
script:
- - "export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH CXX=clang++"
+ - "export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
+ - "touch svg-flatten/build/svg-flatten svg-flatten/build/nopencv-test"
- "python3 setup.py install --user"
- "gerbolyze --help"
- "make -C svg-flatten tests"
+ dependencies:
+ - build:debian_10
+ artifacts:
+ name: "gerbolyze-$CI_COMMIT_REF_NAME-test-deb10"
+ when: on_failure
+ paths:
+ - svg-flatten/testcase-fails/*.png
+ - svg-flatten/testcase-fails/*.svg
+
+build:ubuntu_2004:
+ stage: build
+ image: "registry.gitlab.com/gerbolyze/build-containers/ubuntu:20.04"
+ script:
+ - "export CXX=clang++"
+ - "make -C svg-flatten"
+ artifacts:
+ name: "gerbolyze-$CI_COMMIT_REF_NAME-svg-flatten-ubu20"
+ paths:
+ - svg-flatten/build/svg-flatten
+ - svg-flatten/build/nopencv-test
-test_ubuntu_2004:
+test:ubuntu_2004:
stage: test
+ variables:
+ GIT_SUBMODULE_STRATEGY: none
image: "registry.gitlab.com/gerbolyze/build-containers/ubuntu:20.04"
script:
- - "export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH CXX=clang++"
+ - "export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
+ - "touch svg-flatten/build/svg-flatten svg-flatten/build/nopencv-test"
- "python3 setup.py install --user"
- "gerbolyze --help"
- "make -C svg-flatten tests"
+ dependencies:
+ - build:ubuntu_2004
+ artifacts:
+ name: "gerbolyze-$CI_COMMIT_REF_NAME-test-ubu20"
+ when: on_failure
+ paths:
+ - svg-flatten/testcase-fails/*.png
+ - svg-flatten/testcase-fails/*.svg
+
+build:fedora_33:
+ stage: build
+ image: "registry.gitlab.com/gerbolyze/build-containers/fedora:33"
+ script:
+ - "export CXX=clang++"
+ - "make -C svg-flatten"
+ artifacts:
+ name: "gerbolyze-$CI_COMMIT_REF_NAME-svg-flatten-fed33"
+ paths:
+ - svg-flatten/build/svg-flatten
+ - svg-flatten/build/nopencv-test
-test_fedora_33:
+test:fedora_33:
stage: test
+ variables:
+ GIT_SUBMODULE_STRATEGY: none
image: "registry.gitlab.com/gerbolyze/build-containers/fedora:33"
script:
- - "export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH CXX=clang++"
+ - "export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
+ - "touch svg-flatten/build/svg-flatten svg-flatten/build/nopencv-test"
- "python3 setup.py install --user"
- "gerbolyze --help"
- "make -C svg-flatten tests"
+ dependencies:
+ - build:fedora_33
+ artifacts:
+ name: "gerbolyze-$CI_COMMIT_REF_NAME-test-fed33"
+ when: on_failure
+ paths:
+ - svg-flatten/testcase-fails/*.png
+ - svg-flatten/testcase-fails/*.svg
+
+build:archlinux:
+ stage: build
+ image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest"
+ script:
+ - "make -C svg-flatten"
+ artifacts:
+ name: "gerbolyze-$CI_COMMIT_REF_NAME-svg-flatten-arch"
+ paths:
+ - svg-flatten/build/svg-flatten
+ - svg-flatten/build/nopencv-test
-test_archlinux:
+test:archlinux:
stage: test
+ variables:
+ GIT_SUBMODULE_STRATEGY: none
image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest"
script:
- "export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
+ - "touch svg-flatten/build/svg-flatten svg-flatten/build/nopencv-test"
- "python setup.py install --user"
- "gerbolyze --help"
- "make -C svg-flatten tests"
+ dependencies:
+ - build:archlinux
+ artifacts:
+ name: "gerbolyze-$CI_COMMIT_REF_NAME-test-arch"
+ when: on_failure
+ paths:
+ - svg-flatten/testcase-fails/*.png
+ - svg-flatten/testcase-fails/*.svg