.travis.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Run repoman via travis
  3. # See https://github.com/mrueg/repoman-travis
  4. #
  5. language: python
  6. cache: pip
  7. python:
  8. - pypy
  9. env:
  10. - PORTAGE_VER="2.3.5"
  11. before_install:
  12. - sudo apt-get -qq update
  13. - pip install lxml
  14. before_script:
  15. - sudo chmod a+rwX /etc/passwd /etc/group /etc /usr
  16. - mkdir -p travis-overlay /etc/portage /usr/portage/distfiles
  17. - mv !(travis-overlay) travis-overlay/
  18. - mv .git travis-overlay/
  19. - wget "https://raw.githubusercontent.com/mrueg/repoman-travis/master/spinner.sh"
  20. - wget -qO - "https://github.com/gentoo/portage/archive/portage-${PORTAGE_VER}.tar.gz" | tar xz
  21. - wget -qO - "https://github.com/gentoo-mirror/gentoo/archive/master.tar.gz" | tar xz -C /usr/portage --strip-components=1
  22. - chmod a+rwx spinner.sh
  23. - echo "portage:x:250:250:portage:/var/tmp/portage:/bin/false" >> /etc/passwd
  24. - echo "portage::250:portage,travis" >> /etc/group
  25. - wget "https://www.gentoo.org/dtd/metadata.dtd" -O /usr/portage/distfiles/metadata.dtd
  26. - ln -s portage-portage-${PORTAGE_VER}/cnf/repos.conf /etc/portage/repos.conf
  27. - ln -s /usr/portage/profiles/default/linux/amd64/13.0 /etc/portage/make.profile
  28. - cd travis-overlay
  29. script:
  30. - ./../spinner.sh "python ../portage-portage-${PORTAGE_VER}/repoman/bin/repoman full -d"
  31. # You can append own scripts after this line
  32. notifications:
  33. irc:
  34. channels: "chat.freenode.net#gentoo-science"
  35. template:
  36. - "%{repository} - %{branch} - %{author}: %{commit_subject} - %{message} - Build details : %{build_url}"
  37. use_notice: true