Skip to content

Commit a57ce1e

Browse files
author
raveit65
committed
Initialize Travis CI support
for debian and ubuntu
1 parent f2f76bf commit a57ce1e

File tree

1 file changed

+147
-0
lines changed

1 file changed

+147
-0
lines changed

.travis.yml

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
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+
- curl -Ls -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/docker-build
16+
- chmod +x docker-build
17+
18+
install:
19+
- sudo apt-get install -y python3-pip python3-setuptools
20+
- sudo pip3 install --upgrade pip
21+
- sudo pip install PyGithub
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+
env:
28+
- DISTRO="archlinux/base"
29+
- DISTRO="debian:sid"
30+
- DISTRO="fedora:29"
31+
- DISTRO="ubuntu:18.10"
32+
33+
##########################################################
34+
# THE FOLLOWING LINES IS USED BY docker-build
35+
##########################################################
36+
requires:
37+
archlinux:
38+
# Useful URL: https://git.archlinux.org/svntogit/community.git/tree/mate-applets
39+
- gcc
40+
- git
41+
- gucharmap
42+
- gtksourceview3
43+
- intltool
44+
- itstool
45+
- libgtop
46+
- libnotify
47+
- make
48+
- mate-common
49+
- mate-panel
50+
- polkit
51+
- upower
52+
- which
53+
- wireless_tools
54+
- yelp-tools
55+
56+
debian:
57+
# Useful URL: https://github.com/mate-desktop/debian-packages
58+
# Useful URL: https://salsa.debian.org/debian-mate-team/mate-applets
59+
- git
60+
- intltool
61+
- libcpupower-dev
62+
- libdbus-1-dev
63+
- libdbus-glib-1-dev
64+
- libglib2.0-dev
65+
- libgtk-3-dev
66+
- libgtksourceview-3.0-dev
67+
- libgtop2-dev
68+
- libgucharmap-2-90-dev
69+
- libiw-dev
70+
- libmate-panel-applet-dev
71+
- libmateweather-dev
72+
- libnotify-dev
73+
- libpolkit-gobject-1-dev
74+
- libupower-glib-dev
75+
- libwnck-3-dev
76+
- libx11-dev
77+
- libxml2-dev
78+
- make
79+
- mate-common
80+
- x11proto-kb-dev
81+
- yelp-tools
82+
83+
fedora:
84+
# Useful URL: https://src.fedoraproject.org/cgit/rpms/mate-applets.git
85+
- gcc
86+
- git
87+
- gtksourceview3-devel
88+
- gucharmap-devel
89+
- kernel-tools-libs-devel
90+
- libgtop2-devel
91+
- libnotify-devel
92+
- libmateweather-devel
93+
- libwnck3-devel
94+
- libxml2-devel
95+
- libICE-devel
96+
- libSM-devel
97+
- make
98+
- mate-common
99+
- mate-settings-daemon-devel
100+
- mate-notification-daemon
101+
- mate-panel-devel
102+
- polkit-devel
103+
- redhat-rpm-config
104+
- startup-notification-devel
105+
- upower-devel
106+
- wireless-tools-devel
107+
108+
ubuntu:
109+
- git
110+
- intltool
111+
- libcpufreq-dev
112+
- libdbus-1-dev
113+
- libdbus-glib-1-dev
114+
- libglib2.0-dev
115+
- libgtk-3-dev
116+
- libgtksourceview-3.0-dev
117+
- libgtop2-dev
118+
- libgucharmap-2-90-dev
119+
- libiw-dev
120+
- libmate-panel-applet-dev
121+
- libmateweather-dev
122+
- libnotify-dev
123+
- libpolkit-gobject-1-dev
124+
- libupower-glib-dev
125+
- libwnck-3-dev
126+
- libx11-dev
127+
- libxml2-dev
128+
- make
129+
- mate-common
130+
- x11proto-kb-dev
131+
- yelp-tools
132+
- linux-tools-generic
133+
134+
variables:
135+
- CFLAGS="-Wall -Werror=format-security"
136+
137+
before_scripts:
138+
- if [ ${DISTRO_NAME} == "debian" ];then
139+
- curl -Ls -o debian.sh https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/debian.sh
140+
- bash ./debian.sh
141+
- fi
142+
- if [ ${DISTRO_NAME} == "ubuntu" ];then
143+
- ln -sf `ls /usr/lib/libcpupower.so.*|head -1` /usr/lib/libcpupower.so
144+
- fi
145+
146+
after_scripts:
147+
- make distcheck

0 commit comments

Comments
 (0)