ci: use a gentoo image
This commit is contained in:
parent
92913f5149
commit
cd2e62b3ce
@ -1,25 +1,19 @@
|
||||
image: alpine:3
|
||||
image: gentoo/stage3-amd64:latest
|
||||
|
||||
stages:
|
||||
- test
|
||||
|
||||
before_script:
|
||||
- apk update && apk add alpine-sdk bash git 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
|
||||
- cp scripts/src/check-commit /usr/bin
|
||||
- mkdir -p /var/db/repos/gentoo
|
||||
- emerge-webrsync
|
||||
- export MAKEOPTS="--jobs=10"
|
||||
- export USE="-perl"
|
||||
- emerge -1 -q --jobs=10 --noreplace app-portage/repoman dev-vcs/git net-misc/wget
|
||||
- wget "https://gitlab.com/src_prepare/scripts/-/raw/master/src/repomanci" -O /usr/bin/repomanci
|
||||
- chmod 777 /usr/bin/repomanci
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- cd /var/db/repos/src_prepare-overlay
|
||||
- check-commit
|
||||
- repomanci
|
||||
|
Loading…
Reference in New Issue
Block a user