Skip to content

Commit ee80536

Browse files
author
raveit65
committed
add Travis-CI support
1 parent 8930709 commit ee80536

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

.travis.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
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+
before_install:
9+
- curl -Ls -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/docker-build
10+
- chmod +x docker-build
11+
12+
install:
13+
- sudo apt-get install -y python3-pip python3-setuptools
14+
- sudo pip3 install --upgrade pip
15+
- sudo pip install PyGithub
16+
- ./docker-build --name ${DISTRO} --config .travis.yml --install
17+
18+
script:
19+
- ./docker-build --name ${DISTRO} --verbose --config .travis.yml --build autotools
20+
21+
env:
22+
- DISTRO="archlinux/base"
23+
- DISTRO="debian:sid"
24+
- DISTRO="fedora:29"
25+
- DISTRO="ubuntu:18.10"
26+
27+
##########################################################
28+
# THE FOLLOWING LINES IS USED BY docker-build
29+
##########################################################
30+
requires:
31+
archlinux:
32+
# Useful URL: https://git.archlinux.org/svntogit/community.git/tree/mate-polkit
33+
- gcc
34+
- git
35+
- gtk3
36+
- libappindicator-gtk3
37+
- make
38+
- mate-common
39+
- polkit
40+
- which
41+
42+
debian:
43+
# Useful URL: https://github.com/mate-desktop/debian-packages
44+
# Useful URL: https://salsa.debian.org/debian-mate-team/mate-polkit
45+
- git
46+
- libappindicator3-dev
47+
- libgtk-3-dev
48+
- libpolkit-agent-1-dev
49+
- libpolkit-gobject-1-dev
50+
- make
51+
- mate-common
52+
53+
fedora:
54+
# Useful URL: https://src.fedoraproject.org/cgit/rpms/mate-polkit.git
55+
- gcc
56+
- git
57+
- gtk3-devel
58+
- libappindicator-gtk3-devel
59+
- make
60+
- mate-common
61+
- polkit-devel
62+
- redhat-rpm-config
63+
64+
ubuntu:
65+
- git
66+
- libappindicator3-dev
67+
- libgtk-3-dev
68+
- libpolkit-agent-1-dev
69+
- libpolkit-gobject-1-dev
70+
- make
71+
- mate-common
72+
73+
variables:
74+
- CFLAGS="-Wall -Werror=format-security"
75+
76+
before_scripts:
77+
- if [ ${DISTRO_NAME} == "debian" ];then
78+
- curl -Ls -o debian.sh https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/debian.sh
79+
- bash ./debian.sh
80+
- fi
81+
82+
after_scripts:
83+
- make distcheck

0 commit comments

Comments
 (0)