2020-03-20 19:51:21 +01:00
|
|
|
image: alpine:3
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- apk update && apk add alpine-sdk bash git python py3-lxml py3-pip python3-dev rsync wget xz
|
|
|
|
- pip3 install pkgcheck pyyaml
|
|
|
|
- git clone https://anongit.gentoo.org/git/proj/portage.git
|
|
|
|
- cd portage && python3 setup.py install
|
|
|
|
- cd repoman && python3 setup.py install
|
|
|
|
- cd ../.. && rm -rf portage
|
|
|
|
- adduser -S portage && addgroup portage
|
|
|
|
- mkdir -p /var/cache/distfiles
|
|
|
|
- mkdir -p /var/db/repos
|
|
|
|
- git clone https://anongit.gentoo.org/git/repo/gentoo.git /var/db/repos/gentoo
|
|
|
|
- git clone https://gitlab.com/src_prepare/src_prepare-overlay.git /var/db/repos/src_prepare-overlay
|
|
|
|
- git clone https://gitlab.com/src_prepare/scripts.git
|
2020-03-20 22:02:20 +01:00
|
|
|
- cp scripts/src/check-commit /usr/bin
|
2020-03-20 19:51:21 +01:00
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- cd /var/db/repos/src_prepare-overlay
|
|
|
|
- check-commit
|