aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-06-21 12:38:05 +0200
committerJustin Lecher <jlec@gentoo.org>2015-06-21 12:38:05 +0200
commitfed021ae3cdd12bbf9bfa092d200358e5e73feb8 (patch)
tree6aa1aa113ba1e56127b744d3b080c8731e5cc719 /.travis.yml
parentRevert "Gentoo does https by default now" (diff)
downloadsci-fed021ae3cdd12bbf9bfa092d200358e5e73feb8.tar.gz
sci-fed021ae3cdd12bbf9bfa092d200358e5e73feb8.tar.bz2
sci-fed021ae3cdd12bbf9bfa092d200358e5e73feb8.zip
Use mrueg/repoman-travis
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml34
1 files changed, 24 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml
index 043a3717d..cdd8c9297 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,22 +1,36 @@
+#
+# Run repoman via travis
+# See https://github.com/mrueg/repoman-travis
+#
language: python
python:
- - pypy
-
+ - pypy
+env:
+ - PORTAGE_VER="2.2.20"
before_script:
- - sudo chmod a+rwX /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 travis-overlay /etc/portage/ /usr/portage/distfiles
+ - mkdir travis-overlay
- mv !(travis-overlay) travis-overlay/
- mv .git travis-overlay/
- - wget -O - "https://github.com/gentoo/portage/archive/master.tar.gz" | tar -xz
- - wget -O - "https://github.com/gentoo/gentoo-portage-rsync-mirror/archive/master.tar.gz" | tar xz -C /usr/portage --strip-components=1
- - cp portage-master/cnf/repos.conf /etc/portage/
+ - wget "https://raw.githubusercontent.com/mrueg/repoman-travis/master/.travis.yml" -O .travis.yml.upstream
+ - wget "https://github.com/gentoo/portage/archive/v${PORTAGE_VER}.tar.gz" -O portage-${PORTAGE_VER}.tar.gz
+ - wget "https://raw.githubusercontent.com/mrueg/repoman-travis/master/spinner.sh"
+ - wget "https://github.com/gentoo/gentoo-portage-rsync-mirror/archive/master.tar.gz" -O portage-tree.tar.gz
+ - sudo chmod a+rwX /etc/passwd /etc/group /etc /usr spinner.sh
+ - chmod a+rwx spinner.sh
+ - 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 xzf portage-${PORTAGE_VER}.tar.gz
+ - tar xzf portage-tree.tar.gz -C /usr/portage --strip-components=1
+ - cp portage-${PORTAGE_VER}/cnf/repos.conf /etc/portage/
- ln -s /usr/portage/profiles/base/ /etc/portage/make.profile
- wget "http://www.gentoo.org/dtd/metadata.dtd" -O /usr/portage/distfiles/metadata.dtd
+ - SIZE=`stat -c %s .travis.yml.upstream`
+ - if ! cmp -n $SIZE -s .travis.yml .travis.yml.upstream; then echo -e "\e[31m !!! .travis.yml outdated! Update available https://github.com/mrueg/repoman-travis \e[0m" > /tmp/update ; fi
- cd travis-overlay
script:
- - python ../portage-master/bin/repoman full -vdx
+ - ./../spinner.sh "./../portage-${PORTAGE_VER}/bin/repoman full -d"
+# You can append own scripts after this line
notifications:
irc: "chat.freenode.net#gentoo-science"