From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-813923-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id D2073138CDC
	for <garchives@archives.gentoo.org>; Sun, 21 Jun 2015 10:38:12 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 7846214023;
	Sun, 21 Jun 2015 10:38:12 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id D488214023
	for <gentoo-commits@lists.gentoo.org>; Sun, 21 Jun 2015 10:38:11 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 25A27340C4B
	for <gentoo-commits@lists.gentoo.org>; Sun, 21 Jun 2015 10:38:11 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id AC770A31
	for <gentoo-commits@lists.gentoo.org>; Sun, 21 Jun 2015 10:38:09 +0000 (UTC)
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" <jlec@gentoo.org>
Message-ID: <1434883085.fed021ae3cdd12bbf9bfa092d200358e5e73feb8.jlec@gentoo>
Subject: [gentoo-commits] proj/sci:master commit in: /
X-VCS-Repository: proj/sci
X-VCS-Files: .travis.yml
X-VCS-Directories: /
X-VCS-Committer: jlec
X-VCS-Committer-Name: Justin Lecher
X-VCS-Revision: fed021ae3cdd12bbf9bfa092d200358e5e73feb8
X-VCS-Branch: master
Date: Sun, 21 Jun 2015 10:38:09 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 90f08bd1-ebd1-452f-b603-eebcf2f5c93a
X-Archives-Hash: 62e8ebbda8854a51b05bcdc2901d27d6

commit:     fed021ae3cdd12bbf9bfa092d200358e5e73feb8
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 21 10:38:05 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Jun 21 10:38:05 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=fed021ae

Use mrueg/repoman-travis

Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 .travis.yml | 34 ++++++++++++++++++++++++----------
 1 file changed, 24 insertions(+), 10 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 043a371..cdd8c92 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"