diff options
| -rw-r--r-- | .gitlab-ci.yml | 31 |
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 | ||
| 10 | stages: | 18 | stages: |
| 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 |
