ci: use a gentoo image

This commit is contained in:
Maciej Barć 2020-07-24 05:55:34 +02:00
parent 92913f5149
commit cd2e62b3ce
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A

View File

@ -1,25 +1,19 @@
image: alpine:3 image: gentoo/stage3-amd64:latest
stages: stages:
- test - test
before_script: 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/cache/distfiles
- mkdir -p /var/db/repos - mkdir -p /var/db/repos/gentoo
- git clone https://anongit.gentoo.org/git/repo/gentoo.git /var/db/repos/gentoo - emerge-webrsync
- git clone https://gitlab.com/src_prepare/src_prepare-overlay.git /var/db/repos/src_prepare-overlay - export MAKEOPTS="--jobs=10"
- git clone https://gitlab.com/src_prepare/scripts.git - export USE="-perl"
- cp scripts/src/check-commit /usr/bin - 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: test:
stage: test stage: test
script: script:
- cd /var/db/repos/src_prepare-overlay - repomanci
- check-commit