mirror of
https://git.yoctoproject.org/meta-security
synced 2026-05-09 17:40:32 +00:00
gitlab-ci: add new before script
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
+20
-11
@@ -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
|
.after-my-script: &after-my-script
|
||||||
- cd $CI_PROJECT_DIR/poky
|
- cd $CI_PROJECT_DIR/poky
|
||||||
- . ./oe-init-build-env $CI_PROJECT_DIR/build
|
- . ./oe-init-build-env $CI_PROJECT_DIR/build
|
||||||
@@ -8,7 +16,6 @@
|
|||||||
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- .pre
|
|
||||||
- build
|
- build
|
||||||
- parsec
|
- parsec
|
||||||
- multi
|
- multi
|
||||||
@@ -16,43 +23,45 @@ stages:
|
|||||||
- musl
|
- musl
|
||||||
- test
|
- 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:
|
.build:
|
||||||
|
before_script:
|
||||||
|
- *before-my-script
|
||||||
stage: build
|
stage: build
|
||||||
after_script:
|
after_script:
|
||||||
- *after-my-script
|
- *after-my-script
|
||||||
|
|
||||||
.parsec:
|
.parsec:
|
||||||
|
before_script:
|
||||||
|
- *before-my-script
|
||||||
stage: parsec
|
stage: parsec
|
||||||
after_script:
|
after_script:
|
||||||
- *after-my-script
|
- *after-my-script
|
||||||
|
|
||||||
|
|
||||||
.multi:
|
.multi:
|
||||||
|
before_script:
|
||||||
|
- *before-my-script
|
||||||
stage: multi
|
stage: multi
|
||||||
after_script:
|
after_script:
|
||||||
- *after-my-script
|
- *after-my-script
|
||||||
|
|
||||||
.alt:
|
.alt:
|
||||||
|
before_script:
|
||||||
|
- *before-my-script
|
||||||
stage: alt
|
stage: alt
|
||||||
after_script:
|
after_script:
|
||||||
- *after-my-script
|
- *after-my-script
|
||||||
|
|
||||||
.musl:
|
.musl:
|
||||||
|
before_script:
|
||||||
|
- *before-my-script
|
||||||
stage: musl
|
stage: musl
|
||||||
after_script:
|
after_script:
|
||||||
- *after-my-script
|
- *after-my-script
|
||||||
|
|
||||||
.test:
|
.test:
|
||||||
|
before_script:
|
||||||
|
- *before-my-script
|
||||||
stage: test
|
stage: test
|
||||||
after_script:
|
after_script:
|
||||||
- *after-my-script
|
- *after-my-script
|
||||||
|
|||||||
Reference in New Issue
Block a user