diff options
-rw-r--r-- | .travis.yml | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml index e3ebb84..c3104eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,31 @@ +# The MIT License (MIT) # -# Run repoman via travis -# See https://github.com/mrueg/repoman-travis +# Copyright (c) 2014 Manuel RĂ¼ger +# Copyright (c) 2021 azahi <azahi@teknik.io> # +# 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.8" + - "3.9" env: - - PORTAGE_VER="3.0.13" + - PORTAGE_VER="3.0.21" before_install: - sudo apt-get -qq update - pip install lxml pyyaml @@ -15,7 +34,6 @@ before_script: - 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/.travis.yml" -O .travis.yml.upstream - 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 @@ -25,9 +43,6 @@ before_script: - 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 - - SIZE=$(stat -c %s .travis.yml.upstream) - - if ! cmp -n $SIZE -s .travis.yml .travis.yml.upstream; then echo -e "\e[31m !!! .travis.yml outdated! Update available https://github.com/mrueg/repoman-travis \e[0m" > /tmp/update ; fi - cd travis-overlay script: - ./../spinner.sh "python ../portage-portage-${PORTAGE_VER}/repoman/bin/repoman full -d" -# You can append own scripts after this line |