mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
CI Integrations (test).
This commit is contained in:
parent
c2c7902503
commit
f9224e1700
2 changed files with 204 additions and 0 deletions
50
.github-ci.yml
Normal file
50
.github-ci.yml
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
default:
|
||||
image: "archlinux:latest"
|
||||
|
||||
stages:
|
||||
- lint
|
||||
- build
|
||||
|
||||
shellcheck:
|
||||
stage: lint
|
||||
before_script:
|
||||
- pacman --noconfirm -Syu --needed make shellcheck
|
||||
script:
|
||||
- make lint
|
||||
|
||||
.build:
|
||||
stage: build
|
||||
before_script:
|
||||
- pacman -Syu --needed --noconfirm qemu-headless libisoburn
|
||||
script:
|
||||
- ./.gitlab/ci/build-host.sh
|
||||
after_script:
|
||||
- echo "image_size_megabytes{image=\"${PROFILE}\"} $(du --block-size=MiB -- output/${PROFILE}/*iso)" > metrics.txt
|
||||
parallel:
|
||||
matrix:
|
||||
- PROFILE: [baseline, releng]
|
||||
artifacts:
|
||||
name: "output"
|
||||
paths:
|
||||
- "output/*/*"
|
||||
expire_in: 2d
|
||||
reports:
|
||||
metrics: metrics.txt
|
||||
|
||||
build:
|
||||
extends: .build
|
||||
tags:
|
||||
- fast-single-thread
|
||||
except:
|
||||
- master
|
||||
- schedules
|
||||
- tags
|
||||
|
||||
build:secure:
|
||||
extends: .build
|
||||
tags:
|
||||
- secure
|
||||
only:
|
||||
- master
|
||||
- schedules
|
||||
- tags
|
||||
Loading…
Add table
Add a link
Reference in a new issue