commit:     084e15cb712950a6c580149f93c1d09c57952374
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 13 12:07:48 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Fri Feb 13 12:07:48 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=084e15cb

Import parallel repoman checks from gentoo-rsync2git repo

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

---
 .travis.yml | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 9c4bdf2..f846789 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,6 +4,22 @@ python:
 env:
   - PORTAGE=2.2.14
   - PORTAGE=2.2.17
+  - JOB=0
+  - JOB=1
+  - JOB=2
+  - JOB=3
+  - JOB=4
+  - JOB=5
+  - JOB=6
+  - JOB=7
+  - JOB=8
+  - JOB=9
+  - JOB=10
+  - JOB=11
+  - JOB=12
+  - JOB=13
+  - JOB=14
+  - JOB=15
 
 before_script:
     - mkdir travis-overlay
@@ -24,7 +40,16 @@ before_script:
     - sed -i 's/fcmd=fcmd/fcmd=("%s -q" % fcmd)/' 
./../portage-$PORTAGE/bin/repoman
 
 script:
-    - "python ./../portage-$PORTAGE/bin/repoman full -d -v -x"
+    - ret=0; cx=0;
+      for x in $(cat /usr/portage/profiles/categories); do
+      if test $(( cx++ % 16 )) -eq ${JOB}; then
+          cd ${x} && {
+            python ./../portage-${PORTAGE}/bin/repoman full -v -d -x || ret=1;
+          } && cd -;
+        fi;
+      done;
+      exit "${ret}"
 
 notifications:
   irc: "chat.freenode.net#gentoo-science"
+

Reply via email to