Gentoo Archives: gentoo-commits

From: Alice Ferrazzi <alicef@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/kernel:master commit in: /
Date: Fri, 02 Nov 2018 07:27:29
Message-Id: 1541143611.b8b2dffce136908b1515f008edc299830ba322a8.alicef@gentoo
1 commit: b8b2dffce136908b1515f008edc299830ba322a8
2 Author: Alice Ferrazzi <alicef <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 2 07:26:51 2018 +0000
4 Commit: Alice Ferrazzi <alicef <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 2 07:26:51 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/kernel.git/commit/?id=b8b2dffc
7
8 Add travis script
9
10 Signed-off-by: Alice Ferrazzi <alicef <AT> gentoo.org>
11
12 .travis.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++
13 1 file changed, 44 insertions(+)
14
15 diff --git a/.travis.yml b/.travis.yml
16 new file mode 100644
17 index 0000000..8a04e49
18 --- /dev/null
19 +++ b/.travis.yml
20 @@ -0,0 +1,44 @@
21 +#
22 +# Run repoman via travis
23 +# See https://github.com/mrueg/repoman-travis
24 +#
25 +language: python
26 +python:
27 + - pypy
28 +env:
29 + - PORTAGE_VER="2.3.43"
30 +before_install:
31 + - sudo apt-get -qq update
32 + - pip install lxml pyyaml
33 +before_script:
34 + - sudo chmod a+rwX /etc/passwd /etc/group /etc /usr
35 + - mkdir -p travis-overlay /etc/portage /usr/portage/distfiles
36 + - mv !(travis-overlay) travis-overlay/
37 + - mv .git travis-overlay/
38 + - wget "https://raw.githubusercontent.com/mrueg/repoman-travis/master/.travis.yml" -O .travis.yml.upstream
39 + - wget "https://raw.githubusercontent.com/mrueg/repoman-travis/master/spinner.sh"
40 + - wget -qO - "https://github.com/gentoo/portage/archive/portage-${PORTAGE_VER}.tar.gz" | tar xz
41 + - wget -qO - "https://github.com/gentoo-mirror/gentoo/archive/master.tar.gz" | tar xz -C /usr/portage --strip-components=1
42 + - chmod a+rwx spinner.sh
43 + - echo "portage:x:250:250:portage:/var/tmp/portage:/bin/false" >> /etc/passwd
44 + - echo "portage::250:portage,travis" >> /etc/group
45 + - wget "https://www.gentoo.org/dtd/metadata.dtd" -O /usr/portage/distfiles/metadata.dtd
46 + - ln -s $TRAVIS_BUILD_DIR/portage-portage-${PORTAGE_VER}/cnf/repos.conf /etc/portage/repos.conf
47 + - ln -s /usr/portage/profiles/default/linux/amd64/17.0 /etc/portage/make.profile
48 + - SIZE=$(stat -c %s .travis.yml.upstream)
49 + - 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
50 + - cd travis-overlay
51 +script:
52 + - ./../spinner.sh "python ../portage-portage-${PORTAGE_VER}/repoman/bin/repoman full -d"
53 +# You can append own scripts after this line
54 +notifications:
55 + irc:
56 + on_success: change
57 + on_failure: always
58 + channels:
59 + - "chat.freenode.net#gentoo-kernelci"
60 + template:
61 + - "%{repository}#%{build_number} (%{branch} - %{commit}): %{message}"
62 + - "%{author} - %{commit_message}"
63 + - "Change view : %{compare_url}"
64 + - "Build details : %{build_url}"