Commit c0efc361 authored by Adrian Schollmeyer's avatar Adrian Schollmeyer
Browse files

Merge branch 'gitlab-ci' into 'master'

Add GitLab CI

Closes #16

See merge request gentoo/fem-overlay!1
parents 879ec8e8 e1143b1a
image: gentoo/stage3
stages:
- repoman
- lint
default:
before_script:
- ./tools/sync_portage.sh
repoman:
stage: repoman
script:
- emerge --quiet --noreplace app-portage/repoman dev-vcs/git
- repoman full -x
cache:
key: fem-overlay-gentoo-stage3
paths:
- ./tmp
overlint:
stage: lint
script:
- emerge --quiet --noreplace app-portage/overlint
- overlint-cli .
cache:
key: fem-overlay-gentoo-stage3
paths:
- ./tmp
pkgcheck:
stage: lint
script:
- emerge --quiet --noreplace dev-util/pkgcheck
- pkgcheck scan --exit
cache:
key: fem-overlay-gentoo-stage3
paths:
- ./tmp
#!/bin/bash
set -e
mkdir -p /etc/portage/repos.conf
repo_conf=$(cat <<EOF
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /var/db/repos/gentoo
sync-type = rsync
sync-uri = rsync://gentoo-portage.fem.tu-ilmenau.de/gentoo-portage
auto-sync = yes
sync-rsync-verify-jobs = 0
sync-rsync-verify-metamanifest = no
EOF
)
echo "${repo_conf}" > /etc/portage/repos.conf/gentoo.conf
mkdir -p tmp/repos
ln -sf $(pwd)/tmp/repos /var/db/repos/gentoo
emerge --sync --quiet
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment