aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2021-04-18 09:19:11 -0700
committerArmin Kuster <akuster808@gmail.com>2021-04-19 06:56:18 -0700
commitca7491a2e3cb8ca40ef80100383e03c82720034c (patch)
tree4fd09cea8f48d23251eaca17954d3c5aba335545
parent81ec453fc5c623a5109df89592f29acc669975f2 (diff)
downloadmeta-security-ca7491a2e3cb8ca40ef80100383e03c82720034c.tar.gz
meta-security-ca7491a2e3cb8ca40ef80100383e03c82720034c.tar.bz2
meta-security-ca7491a2e3cb8ca40ef80100383e03c82720034c.zip
gitlab-ci: add new before script
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--.gitlab-ci.yml31
1 files changed, 20 insertions, 11 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5634762..71569b8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,11 @@
+.before-my-script: &before-my-script
+ - echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error
+ - echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error
+ - export PATH=~/.local/bin:$PATH
+ - wget https://bootstrap.pypa.io/get-pip.py
+ - python3 get-pip.py
+ - python3 -m pip install kas
+
.after-my-script: &after-my-script
- cd $CI_PROJECT_DIR/poky
- . ./oe-init-build-env $CI_PROJECT_DIR/build
@@ -8,7 +16,6 @@
stages:
- - .pre
- build
- parsec
- multi
@@ -16,43 +23,45 @@ stages:
- musl
- test
-.pre:
- stage: .pre
- - echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error
- - echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error
- - export PATH=~/.local/bin:$PATH
- - wget https://bootstrap.pypa.io/get-pip.py
- - python3 get-pip.py
- - python3 -m pip install kas
- - rm -fr $CI_PROJECT_DIR/build
-
.build:
+ before_script:
+ - *before-my-script
stage: build
after_script:
- *after-my-script
.parsec:
+ before_script:
+ - *before-my-script
stage: parsec
after_script:
- *after-my-script
.multi:
+ before_script:
+ - *before-my-script
stage: multi
after_script:
- *after-my-script
.alt:
+ before_script:
+ - *before-my-script
stage: alt
after_script:
- *after-my-script
.musl:
+ before_script:
+ - *before-my-script
stage: musl
after_script:
- *after-my-script
.test:
+ before_script:
+ - *before-my-script
stage: test
after_script:
- *after-my-script