-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
23 lines (22 loc) · 1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Lifted from https://github.com/mrueg/repoman-travis
#
language: python
env:
global:
- PORTAGE_VER="2.3.41"
before_install:
- sudo apt-get -qq update
- pip install lxml pyyaml
before_script:
- sudo chmod a+rwX /etc/passwd /etc/group /etc /usr
- mkdir -p /etc/portage /usr/portage/distfiles
- wget -qO - https://github.com/gentoo-mirror/gentoo/archive/master.tar.gz | tar xz -C /usr/portage --strip-components=1
- wget -qO - https://gitweb.gentoo.org/proj/portage.git/snapshot/portage-${PORTAGE_VER}.tar.bz2 | tar xj
- echo "portage:x:250:250:portage:/var/tmp/portage:/bin/false" >> /etc/passwd
- echo "portage::250:portage,travis" >> /etc/group
- wget "https://www.gentoo.org/dtd/metadata.dtd" -O /usr/portage/distfiles/metadata.dtd
- ln -s $TRAVIS_BUILD_DIR/portage-${PORTAGE_VER}/cnf/repos.conf /etc/portage/repos.conf
- sudo ln -s /usr/portage/profiles/default/linux/amd64/17.0 /etc/portage/make.profile
script:
- python $TRAVIS_BUILD_DIR/portage-${PORTAGE_VER}/repoman/bin/repoman full -d