summaryrefslogtreecommitdiff
blob: af113fd423034e1bd87d5884608bf8ba0ed31357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
before_script:
    - mkdir travis-overlay
    - 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
    - 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
    - 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