fix: restore GitLab CI YAML so MR test pipelines can run
The posprint-bin tarball script line started with a quoted token followed by more words, which is invalid YAML and failed every pipeline before any job started. Quote the whole command as a block scalar, and skip empty branch-push pipelines now that jobs are MR- or tag-only. Co-authored-by: tim <tim@timfalken.com>
@@ -1,6 +1,12 @@
1
1
# posprint — GitLab CI/CD (GitLab.com SaaS runners)
2
2
# Tests on merge requests; release builds on tags only.
3
3
4
# Skip empty pipelines on branch pushes (jobs are MR- or tag-only).
5
workflow:
6
rules:
7
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
8
- if: $CI_COMMIT_TAG
9
4
10
stages:
5
11
- test
6
12
- build
@@ -90,7 +96,9 @@ build:linux-arch:
90
96
- mkdir -p "$CI_PROJECT_DIR/dist"
91
97
- cp packaging/arch/*.pkg.tar.zst "$CI_PROJECT_DIR/dist/"
92
98
- chmod +x "$CI_PROJECT_DIR/scripts/make-linux-bin-tarball.sh"
93
- "$CI_PROJECT_DIR/scripts/make-linux-bin-tarball.sh" packaging/arch/*.pkg.tar.zst "$CI_PROJECT_DIR/dist/posprint-${PKGVER}-x86_64.tar.gz" "$PKGVER"
99
# Quoted-then-unquoted tokens are invalid YAML (breaks every pipeline).
100
- |
101
"$CI_PROJECT_DIR/scripts/make-linux-bin-tarball.sh" packaging/arch/*.pkg.tar.zst "$CI_PROJECT_DIR/dist/posprint-${PKGVER}-x86_64.tar.gz" "$PKGVER"
94
102
artifacts:
95
103
name: "posprint-arch-$CI_COMMIT_TAG"
96
104
paths:
@@ -1,6 +1,12 @@1
# posprint — GitLab CI/CD (GitLab.com SaaS runners)
1
# posprint — GitLab CI/CD (GitLab.com SaaS runners)
2
# Tests on merge requests; release builds on tags only.
2
# Tests on merge requests; release builds on tags only.
3
3
4
# Skip empty pipelines on branch pushes (jobs are MR- or tag-only).
5
workflow:
6
rules:
7
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
8
- if: $CI_COMMIT_TAG
9
4
stages:
10
stages:
5
- test
11
- test
6
- build
12
- build
@@ -90,7 +96,9 @@ build:linux-arch:90
- mkdir -p "$CI_PROJECT_DIR/dist"
96
- mkdir -p "$CI_PROJECT_DIR/dist"
91
- cp packaging/arch/*.pkg.tar.zst "$CI_PROJECT_DIR/dist/"
97
- cp packaging/arch/*.pkg.tar.zst "$CI_PROJECT_DIR/dist/"
92
- chmod +x "$CI_PROJECT_DIR/scripts/make-linux-bin-tarball.sh"
98
- chmod +x "$CI_PROJECT_DIR/scripts/make-linux-bin-tarball.sh"
93
- "$CI_PROJECT_DIR/scripts/make-linux-bin-tarball.sh" packaging/arch/*.pkg.tar.zst "$CI_PROJECT_DIR/dist/posprint-${PKGVER}-x86_64.tar.gz" "$PKGVER"
99
# Quoted-then-unquoted tokens are invalid YAML (breaks every pipeline).
100
- |
101
"$CI_PROJECT_DIR/scripts/make-linux-bin-tarball.sh" packaging/arch/*.pkg.tar.zst "$CI_PROJECT_DIR/dist/posprint-${PKGVER}-x86_64.tar.gz" "$PKGVER"
94
artifacts:
102
artifacts:
95
name: "posprint-arch-$CI_COMMIT_TAG"
103
name: "posprint-arch-$CI_COMMIT_TAG"
96
paths:
104
paths:
@@ -167,7 +167,7 @@ Legacy JSON fields `preview_mode` and `cut_after_print` are ignored if present.
167
167
| DSL, params, ESC/POS, preview, wrap, I/O, print mocks | `src/**` unit tests |
168
168
| App / shell helpers | `src/main.rs` tests |
169
169
170
Run: `cargo test` (~100 tests). CI: tests on merge requests; release artifacts on tags.
170
Run: `cargo test` (~100 tests). CI: tests on merge requests; release artifacts on tags. Branch pushes do not create pipelines (those jobs would be empty).
171
171
172
172
---
173
173
@@ -167,7 +167,7 @@ Legacy JSON fields `preview_mode` and `cut_after_print` are ignored if present.167
| DSL, params, ESC/POS, preview, wrap, I/O, print mocks | `src/**` unit tests |167
| DSL, params, ESC/POS, preview, wrap, I/O, print mocks | `src/**` unit tests |168
| App / shell helpers | `src/main.rs` tests |168
| App / shell helpers | `src/main.rs` tests |169
169
170
Run: `cargo test` (~100 tests). CI: tests on merge requests; release artifacts on tags.170
Run: `cargo test` (~100 tests). CI: tests on merge requests; release artifacts on tags. Branch pushes do not create pipelines (those jobs would be empty).171
171
172
---172
---173
173