summaryrefslogtreecommitdiffstats
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
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 @@
1.before-my-script: &before-my-script
2 - echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error
3 - echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error
4 - export PATH=~/.local/bin:$PATH
5 - wget https://bootstrap.pypa.io/get-pip.py
6 - python3 get-pip.py
7 - python3 -m pip install kas
8
1.after-my-script: &after-my-script 9.after-my-script: &after-my-script
2 - cd $CI_PROJECT_DIR/poky 10 - cd $CI_PROJECT_DIR/poky
3 - . ./oe-init-build-env $CI_PROJECT_DIR/build 11 - . ./oe-init-build-env $CI_PROJECT_DIR/build
@@ -8,7 +16,6 @@
8 16
9 17
10stages: 18stages:
11 - .pre
12 - build 19 - build
13 - parsec 20 - parsec
14 - multi 21 - multi
@@ -16,43 +23,45 @@ stages:
16 - musl 23 - musl
17 - test 24 - test
18 25
19.pre:
20 stage: .pre
21 - echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error
22 - echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error
23 - export PATH=~/.local/bin:$PATH
24 - wget https://bootstrap.pypa.io/get-pip.py
25 - python3 get-pip.py
26 - python3 -m pip install kas
27 - rm -fr $CI_PROJECT_DIR/build
28
29.build: 26.build:
27 before_script:
28 - *before-my-script
30 stage: build 29 stage: build
31 after_script: 30 after_script:
32 - *after-my-script 31 - *after-my-script
33 32
34.parsec: 33.parsec:
34 before_script:
35 - *before-my-script
35 stage: parsec 36 stage: parsec
36 after_script: 37 after_script:
37 - *after-my-script 38 - *after-my-script
38 39
39 40
40.multi: 41.multi:
42 before_script:
43 - *before-my-script
41 stage: multi 44 stage: multi
42 after_script: 45 after_script:
43 - *after-my-script 46 - *after-my-script
44 47
45.alt: 48.alt:
49 before_script:
50 - *before-my-script
46 stage: alt 51 stage: alt
47 after_script: 52 after_script:
48 - *after-my-script 53 - *after-my-script
49 54
50.musl: 55.musl:
56 before_script:
57 - *before-my-script
51 stage: musl 58 stage: musl
52 after_script: 59 after_script:
53 - *after-my-script 60 - *after-my-script
54 61
55.test: 62.test:
63 before_script:
64 - *before-my-script
56 stage: test 65 stage: test
57 after_script: 66 after_script:
58 - *after-my-script 67 - *after-my-script