commit:     609e9396cca5533c0183632967c819c327c10a21
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  2 14:54:11 2017 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Jul  2 14:54:11 2017 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=609e9396

travis.yml: update

 .travis.yml | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 99b822e..6011fc3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,27 +1,32 @@
 language: python
 python:
-    - "3.2"
+    - pypy
 notifications:
   irc:
     channels:
       - "irc.freenode.org#gentoo-hardened"
     on_success: change  # options: [always|never|change] default: always
     on_failure: always  # options: [always|never|change] default: always
+    on_start: false     # default: false
+env:
+    - PORTAGE_VER="2.3.6"
+before_install:
+    - sudo apt-get -qq update
+    - pip install lxml
 before_script:
-    - mkdir travis-overlay
+    - sudo chmod a+rwX /etc/passwd /etc/group /etc /usr
+    - mkdir -p travis-overlay /etc/portage/ /usr/portage/distfiles
     - mv !(travis-overlay) travis-overlay/
     - mv .git travis-overlay/
-    - wget "http://distfiles.gentoo.org/distfiles/portage-2.2.28.tar.bz2";
-    - wget "http://distfiles.gentoo.org/snapshots/portage-latest.tar.xz";
-    - sudo chmod 777 /etc/passwd /etc/group /etc /usr
+    - wget 
"https://raw.githubusercontent.com/mrueg/repoman-travis/master/spinner.sh";
+    - wget -qO - 
"https://github.com/gentoo/portage/archive/portage-${PORTAGE_VER}.tar.gz"; | tar 
xz
+    - wget -qO - 
"https://github.com/gentoo-mirror/gentoo/archive/master.tar.gz"; | tar xz -C 
/usr/portage --strip-components=1
+    - 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 xjf portage-2.2.28.tar.bz2
-    - tar xJf portage-latest.tar.xz -C /usr/
-    - cp portage-2.2.28/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
+    - wget "https://www.gentoo.org/dtd/metadata.dtd"; -O 
/usr/portage/distfiles/metadata.dtd
+    - ln -s portage-portage-${PORTAGE_VER}/cnf/repos.conf 
/etc/portage/repos.conf
     - ln -s /usr/portage/profiles/default/linux/amd64/13.0 
/etc/portage/make.profile
     - cd travis-overlay
 script:
-    - ./../portage-2.2.28/bin/repoman full -i -d
+    - ./../spinner.sh "python 
../portage-portage-${PORTAGE_VER}/repoman/bin/repoman full -i -d"

Reply via email to