Skip to content

Commit

Permalink
gitlab: reuse ci/pipeline.script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau committed Aug 19, 2021
1 parent 3fd21a1 commit 83f3776
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,7 @@ main_job:
<<: *shared
script:
- |
set -euo pipefail;
sudo chown -R $(id -u):$(id -g) ${CI_PROJECT_DIR};
cd ${CI_PROJECT_DIR};
./.ci.sh before_install &&
./.ci.sh install &&
./.ci.sh before_script &&
./.ci.sh script && CI_STATUS=success || CI_STATUS=failure;
if [[ "${CI_STATUS}" = "success" ]]; then
./.ci.sh before_cache || true;
./.ci.sh after_success || true;
./.ci.sh after_script || true;
fi;
if [[ "${CI_STATUS}" = "failure" ]]; then
./.ci.sh after_failure || true;
./.ci.sh after_script || true;
exit 1;
fi;
set -euo pipefail
sudo chown -R $(id -u):$(id -g) ${CI_PROJECT_DIR}
cd ${CI_PROJECT_DIR}
source ci/pipeline.script.sh

0 comments on commit 83f3776

Please sign in to comment.