# The MIT License (MIT) # # Copyright (c) 2014 Manuel RĂ¼ger # Copyright (c) 2021 azahi # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. language: python python: - "3.9" env: - PORTAGE_VER="3.0.21" before_install: - sudo apt-get -qq update - pip install lxml pyyaml before_script: - sudo chmod a+rwX /etc/passwd /etc/group /etc /var /var/cache - mkdir -p travis-overlay /etc/portage /var/cache/distfiles /var/db/repos/gentoo - mv !(travis-overlay) travis-overlay/ - mv .git travis-overlay/ - 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 /var/db/repos/gentoo --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 - wget "https://www.gentoo.org/dtd/metadata.dtd" -O /var/cache/distfiles/metadata.dtd - ln -s $TRAVIS_BUILD_DIR/portage-portage-${PORTAGE_VER}/cnf/repos.conf /etc/portage/repos.conf - ln -s /var/db/repos/gentoo/profiles/default/linux/amd64/17.0 /etc/portage/make.profile - cd travis-overlay script: - ./../spinner.sh "python ../portage-portage-${PORTAGE_VER}/repoman/bin/repoman full -d"