commit: a75abfd771787cacc7a641916a5febbd9ae5f730
Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 15 00:21:33 2014 +0000
Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
CommitDate: Sat Nov 15 00:21:33 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=a75abfd7
.travis.yml: test different portage versions
---
.travis.yml | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 84e0f78..1ebe1b3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,19 +1,24 @@
+env:
+ - PORTAGE=2.2.12
+ - PORTAGE=2.2.14
+
before_script:
- mkdir travis-overlay
- mv !(travis-overlay) travis-overlay/
- mv .git travis-overlay/
- - wget "http://distfiles.gentoo.org/distfiles/portage-2.2.12.tar.bz2"
+ - wget "http://distfiles.gentoo.org/distfiles/portage-$PORTAGE.tar.bz2"
- wget "http://distfiles.gentoo.org/snapshots/portage-latest.tar.xz"
- sudo chmod 777 /etc/passwd /etc/group /etc /usr
- echo "portage:x:250:250:portage:/var/tmp/portage:/bin/false" >>
/etc/passwd
- echo "portage::250:portage,travis" >> /etc/group
- mkdir -p /etc/portage/ /usr/portage/distfiles
- - tar xjf portage-2.2.12.tar.bz2
+ - tar xjf portage-$PORTAGE.tar.bz2
- tar xJf portage-latest.tar.xz -C /usr/
- - cp portage-2.2.12/cnf/repos.conf /etc/portage/
+ - cp portage-$PORTAGE/cnf/repos.conf /etc/portage/
- rsync --recursive --links --safe-links --perms --times --omit-dir-times
--compress --force --whole-file --delete --stats --human-readable --timeout=180
--exclude=/distfiles --checksum --quiet rsync://rsync.gentoo.org/gentoo-portage
/usr/portage
- ln -s /usr/portage/profiles/base/ /etc/portage/make.profile
- cd travis-overlay
- - sed -i 's/fcmd=fcmd/fcmd=("%s -q" % fcmd)/'
./../portage-2.2.12/bin/repoman
+ - sed -i 's/fcmd=fcmd/fcmd=("%s -q" % fcmd)/'
./../portage-$PORTAGE/bin/repoman
+
script:
- - "./../portage-2.2.12/bin/repoman full -d -v"
+ - "./../portage-$PORTAGE/bin/repoman full -d -v"