summary refs log tree commit diff
path: root/.travis.yml
diff options
context:
space:
mode:
authorAzat Bahawi <azahi@teknik.io>2021-06-25 20:16:09 +0300
committerAzat Bahawi <azahi@teknik.io>2021-06-25 20:17:38 +0300
commit18b222090462c7b22eefa652d2e0d7176aaa978b (patch)
treec11f07d39b05d4cbbaa0fd96ba993bc94ab4a627 /.travis.yml
parentx11-misc/lemonbar: Bump version (diff)
ci: Update TravisCI runner
Update Portage version and removed checking for upstream update for this
file. In the future we will have to stop relying on this because the
upstream repository got archived.

Signed-off-by: Azat Bahawi <azahi@teknik.io>
Diffstat (limited to '')
-rw-r--r--.travis.yml31
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

Consider giving Nix/NixOS a try! <3