|
| 1 | +# vim: set ts=2 sts=2 sw=2 expandtab : |
| 2 | +dist: xenial |
| 3 | +sudo: required |
| 4 | +language: bash |
| 5 | +services: |
| 6 | + - docker |
| 7 | + |
| 8 | +# Trigger only on the travis branch |
| 9 | +# Remove the lines if every thing is ok. |
| 10 | +branches: |
| 11 | + only: |
| 12 | + - travis |
| 13 | + |
| 14 | +before_install: |
| 15 | + - sudo apt-get install -y python3-pip python3-setuptools |
| 16 | + - sudo pip3 install --upgrade pip |
| 17 | + - sudo pip install PyGithub |
| 18 | + - curl -Ls -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/docker-build |
| 19 | + - chmod +x docker-build |
| 20 | + |
| 21 | +install: |
| 22 | + - ./docker-build --name ${DISTRO} --config .travis.yml --install |
| 23 | + |
| 24 | +script: |
| 25 | + - ./docker-build --name ${DISTRO} --verbose --config .travis.yml --build autotools |
| 26 | + |
| 27 | +# Remove the comments if you need auto release version when git push tag. |
| 28 | +#deploy: |
| 29 | +# provider: script |
| 30 | +# script: ./docker-build --name ${DISTRO} --verbose --config .travis.yml --release |
| 31 | +# skip_cleanup: true |
| 32 | +# on: |
| 33 | +# tags: true |
| 34 | +# condition: "${TRAVIS_TAG} =~ ^v.*$ && ${DISTRO} =~ ^fedora.*$" |
| 35 | + |
| 36 | +env: |
| 37 | + - DISTRO="archlinux/base" |
| 38 | + - DISTRO="debian:sid" |
| 39 | + - DISTRO="fedora:29" |
| 40 | + - DISTRO="ubuntu:18.10" |
| 41 | + |
| 42 | +########################################################## |
| 43 | +# THE FOLLOWING LINES IS USED BY docker-build |
| 44 | +########################################################## |
| 45 | +requires: |
| 46 | + archlinux: |
| 47 | + # Useful URL: https://git.archlinux.org/svntogit/community.git/tree/mate-menus |
| 48 | + - gcc |
| 49 | + - git |
| 50 | + - glib2 |
| 51 | + - gobject-introspection |
| 52 | + - intltool |
| 53 | + - make |
| 54 | + - mate-common |
| 55 | + - python2 |
| 56 | + - which |
| 57 | + |
| 58 | + debian: |
| 59 | + # Useful URL: https://github.com/mate-desktop/debian-packages |
| 60 | + # Useful URL: https://salsa.debian.org/debian-mate-team/mate-menus |
| 61 | + - git |
| 62 | + - gobject-introspection |
| 63 | + - intltool |
| 64 | + - libgirepository1.0-dev |
| 65 | + - libglib2.0-dev |
| 66 | + - make |
| 67 | + - mate-common |
| 68 | + |
| 69 | + fedora: |
| 70 | + # Useful URL: https://src.fedoraproject.org/cgit/rpms/mate-menus.git |
| 71 | + - chrpath |
| 72 | + - gcc |
| 73 | + - git |
| 74 | + - gobject-introspection-devel |
| 75 | + - make |
| 76 | + - mate-common |
| 77 | + - python2-devel |
| 78 | + - redhat-rpm-config |
| 79 | + |
| 80 | + ubuntu: |
| 81 | + - git |
| 82 | + - gobject-introspection |
| 83 | + - intltool |
| 84 | + - libgirepository1.0-dev |
| 85 | + - libglib2.0-dev |
| 86 | + - make |
| 87 | + - mate-common |
| 88 | + |
| 89 | +variables: |
| 90 | + - CFLAGS="-Wall -Werror=format-security" |
| 91 | + |
| 92 | +after_scripts: |
| 93 | + - make distcheck |
| 94 | + |
| 95 | +releases: |
| 96 | + draft: False |
| 97 | + prerelease: False |
| 98 | + checksum: True |
| 99 | + base_version: 1.22.0 |
| 100 | + file_glob: True |
| 101 | + files: mate-menus-*.tar.xz |
| 102 | + web_hooks: |
| 103 | + - http://pub.mate-desktop.org/releases/ |
0 commit comments