diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-04-10 20:48:01 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-04-24 23:30:23 -0300 |
commit | bb792ca4c8769d9b4d33da0bd951a33461acb8a6 (patch) | |
tree | 24790f06eed55491042cec54b86d3abdb0c0df79 | |
parent | ci: line-wrap and split/join some commands (diff) | |
download | firejail-bb792ca4c8769d9b4d33da0bd951a33461acb8a6.tar.gz firejail-bb792ca4c8769d9b4d33da0bd951a33461acb8a6.tar.zst firejail-bb792ca4c8769d9b4d33da0bd951a33461acb8a6.zip |
ci: use one command per line instead of chaining them
To turn each step in question into a normal multi-line shell script.
Note that each step already runs with `set -e` by default.
-rw-r--r-- | .gitlab-ci.yml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bfad57c08..448cfc8cd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
@@ -96,18 +96,18 @@ debian_ci: | |||
96 | - git config user.name "$DEBFULLNAME" | 96 | - git config user.name "$DEBFULLNAME" |
97 | - git config user.email "$DEBEMAIL" | 97 | - git config user.email "$DEBEMAIL" |
98 | - | | 98 | - | |
99 | cd $CI_PROJECT_DIR/.. && | 99 | cd $CI_PROJECT_DIR/.. |
100 | (apt-get source --download-only -t experimental firejail || | 100 | apt-get source --download-only -t experimental firejail || |
101 | apt-get source --download-only firejail) | 101 | apt-get source --download-only firejail |
102 | - | | 102 | - | |
103 | cd $CI_PROJECT_DIR && | 103 | cd $CI_PROJECT_DIR |
104 | tar xf ../firejail_*.debian.tar.* | 104 | tar xf ../firejail_*.debian.tar.* |
105 | - rm -rf debian/patches/ | 105 | - rm -rf debian/patches/ |
106 | - | | 106 | - | |
107 | VERSION=$(grep ^PACKAGE_VERSION= configure | cut -d "'" -f 2) && | 107 | VERSION=$(grep ^PACKAGE_VERSION= configure | cut -d "'" -f 2) |
108 | dch -v ${VERSION}-0.1~ci "Non-maintainer upload." && | 108 | dch -v ${VERSION}-0.1~ci "Non-maintainer upload." |
109 | git archive -o ../firejail_${VERSION}.orig.tar.gz HEAD && | 109 | git archive -o ../firejail_${VERSION}.orig.tar.gz HEAD |
110 | pristine-tar commit ../firejail_${VERSION}.orig.tar.gz ci_build && | 110 | pristine-tar commit ../firejail_${VERSION}.orig.tar.gz ci_build |
111 | git branch -m pristine-tar origin/pristine-tar | 111 | git branch -m pristine-tar origin/pristine-tar |
112 | - git add debian | 112 | - git add debian |
113 | - git commit -m "add debian/" | 113 | - git commit -m "add debian/" |