summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen, Chih-Chia <pigfoot@gmail.com>2018-07-18 15:31:10 +0800
committerChen, Chih-Chia <pigfoot@gmail.com>2018-07-18 15:31:10 +0800
commitd1ab79c5faa9ed741915747b9f8e9823762fc352 (patch)
tree24291a704a3fb18435c711c23cd046a0fff1b38a
parent[dev-util/docker-gen] Add version (diff)
downloadpigfoot-d1ab79c5faa9ed741915747b9f8e9823762fc352.tar.gz
pigfoot-d1ab79c5faa9ed741915747b9f8e9823762fc352.tar.bz2
pigfoot-d1ab79c5faa9ed741915747b9f8e9823762fc352.zip
FIX #1
-rw-r--r--.travis.yml34
1 files changed, 16 insertions, 18 deletions
diff --git a/.travis.yml b/.travis.yml
index af113fd..2a654e3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,28 +1,26 @@
language: python
python:
- - "3.2"
-notifications:
- webhooks:
- urls:
- - https://webhooks.gitter.im/e/e1474408a529d8a8630a
- on_success: change # options: [always|never|change] default: always
- on_failure: always # options: [always|never|change] default: always
- on_start: false # default: false
+ - pypy
+env:
+ global:
+ - PORTAGE_VER="2.3.40"
+before_install:
+ - sudo apt-get -qq update
+ - pip install lxml pyyaml
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"