Skip to content

Commit b205683

Browse files
yetistraveit65
authored andcommitted
add archlinux build on travis-ci
1 parent e6ec733 commit b205683

File tree

1 file changed

+71
-34
lines changed

1 file changed

+71
-34
lines changed

.travis.yml

Lines changed: 71 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@ language: bash
55
services:
66
- docker
77

8-
# Use travis branch for test.
9-
#branches:
10-
# only:
11-
# - travis
12-
138
before_install:
14-
- curl -L -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/travis/travis/docker-build
9+
- curl -Ls -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/docker-build
1510
- chmod +x docker-build
1611

1712
install:
@@ -21,6 +16,7 @@ script:
2116
- ./docker-build --name ${DISTRO} --verbose --config .travis.yml --build autotools
2217

2318
env:
19+
- DISTRO="archlinux/base"
2420
- DISTRO="debian:sid"
2521
- DISTRO="fedora:29"
2622
- DISTRO="ubuntu:18.10"
@@ -29,13 +25,31 @@ env:
2925
# THE FOLLOWING LINES IS USED BY docker-build
3026
##########################################################
3127
requires:
28+
archlinux:
29+
# Useful URL: https://git.archlinux.org/svntogit/community.git/tree/mate-control-center
30+
- gcc
31+
- git
32+
- make
33+
- which
34+
# Append new requires below
35+
- gobject-introspection
36+
- intltool
37+
- itstool
38+
- libxss
39+
- marco
40+
- mate-common
41+
- mate-menus
42+
- mate-settings-daemon
43+
- yelp-tools
44+
3245
debian:
3346
# Useful URL: https://github.com/mate-desktop/debian-packages
3447
# Useful URL: https://salsa.debian.org/debian-mate-team/mate-control-center
48+
- git
49+
- make
50+
# Append new requires below
3551
- curl
3652
- desktop-file-utils
37-
- dpkg-dev
38-
- git
3953
- gobject-introspection
4054
- intltool
4155
- libcanberra-gtk3-dev
@@ -68,12 +82,14 @@ requires:
6882

6983
fedora:
7084
# Useful URL: https://src.fedoraproject.org/cgit/rpms/mate-control-center.git
85+
- gcc
86+
- git
87+
- make
88+
- redhat-rpm-config
89+
# Append new requires below
7190
- cairo-gobject-devel
7291
- dconf-devel
7392
- desktop-file-utils
74-
- gcc
75-
- git
76-
- gobject-introspection-devel
7793
- gobject-introspection-devel
7894
- gtk3-devel
7995
- iso-codes-devel
@@ -84,20 +100,18 @@ requires:
84100
- libcanberra-devel
85101
- libmatekbd-devel
86102
- librsvg2-devel
87-
- make
88103
- marco-devel
89104
- mate-common
90105
- mate-settings-daemon-devel
91-
- redhat-rpm-config
92106
- startup-notification-devel
93107
- which
94108

95109
ubuntu:
96-
# Same as debian
110+
- git
111+
- make
112+
# Append new requires below
97113
- curl
98114
- desktop-file-utils
99-
- dpkg-dev
100-
- git
101115
- gobject-introspection
102116
- intltool
103117
- libcanberra-gtk3-dev
@@ -132,32 +146,55 @@ variables:
132146
- CFLAGS="-Wall -Werror=format-security"
133147

134148
before_scripts:
135-
# These scripts should keep silent.
136149
- cd ${START_DIR}
137-
- '[ -f mate-desktop-1.21.2.tar.xz ] || curl -Ls -o mate-desktop-1.21.2.tar.xz http://pub.mate-desktop.org/releases/1.21/mate-desktop-1.21.2.tar.xz'
150+
- if [ ! -f mate-desktop-1.21.2.tar.xz ];then
151+
- curl -Ls -o mate-desktop-1.21.2.tar.xz http://pub.mate-desktop.org/releases/1.21/mate-desktop-1.21.2.tar.xz
152+
- fi
138153
- tar xf mate-desktop-1.21.2.tar.xz
139154
- cd mate-desktop-1.21.2
140-
- if [ ${DISTRO_NAME} == "debian" -o ${DISTRO_NAME} == "ubuntu" ];then ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/x86_64-linux-gnu >/dev/null 2>&1; else ./configure --prefix=/usr >/dev/null 2>&1; fi
141-
- make > /dev/null 2>&1
142-
- make install >/dev/null 2>&1
155+
- if [ ${DISTRO_NAME} == "debian" -o ${DISTRO_NAME} == "ubuntu" ];then
156+
- ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/x86_64-linux-gnu
157+
- else
158+
- ./configure --prefix=/usr
159+
- fi
160+
- if [ ${TRAVIS} == "false" ]; then
161+
- make clean
162+
- fi
163+
- make
164+
- make install
143165

144166
- cd ${START_DIR}
145-
- git clone --depth 1 https://github.com/mate-desktop/mate-menus.git
146-
- cd mate-menus
147-
- ./autogen.sh >/dev/null 2>&1
148-
- if [ ${DISTRO_NAME} == "debian" -o ${DISTRO_NAME} == "ubuntu" ];then ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/x86_64-linux-gnu >/dev/null 2>&1; else ./configure --prefix=/usr >/dev/null 2>&1; fi
149-
- make > /dev/null 2>&1
150-
- make install > /dev/null 2>&1
167+
- if [ ! -d mate-menus-build ]; then
168+
- git clone --depth 1 https://github.com/mate-desktop/mate-menus.git mate-menus-build
169+
- fi
170+
- cd mate-menus-build
171+
- if [ ${DISTRO_NAME} == "debian" -o ${DISTRO_NAME} == "ubuntu" ];then
172+
- ./autogen.sh --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/x86_64-linux-gnu
173+
- else
174+
- ./autogen.sh --prefix=/usr
175+
- fi
176+
- if [ ${TRAVIS} == "false" ]; then
177+
- make clean
178+
- fi
179+
- make
180+
- make install
151181

152182
- cd ${START_DIR}
153-
- '[ -f mate-settings-daemon-1.21.2.tar.xz ] || curl -Ls -o mate-settings-daemon-1.21.2.tar.xz http://pub.mate-desktop.org/releases/1.21/mate-settings-daemon-1.21.2.tar.xz'
183+
- if [ ! -f mate-settings-daemon-1.21.2.tar.xz ]; then
184+
- curl -Ls -o mate-settings-daemon-1.21.2.tar.xz http://pub.mate-desktop.org/releases/1.21/mate-settings-daemon-1.21.2.tar.xz
185+
- fi
154186
- tar xf mate-settings-daemon-1.21.2.tar.xz
155187
- cd mate-settings-daemon-1.21.2
156-
- if [ ${DISTRO_NAME} == "debian" -o ${DISTRO_NAME} == "ubuntu" ];then ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/x86_64-linux-gnu >/dev/null 2>&1; else ./configure --prefix=/usr >/dev/null 2>&1; fi
157-
- make > /dev/null 2>&1
158-
- make install > /dev/null 2>&1
188+
- if [ ${DISTRO_NAME} == "debian" -o ${DISTRO_NAME} == "ubuntu" ];then
189+
- ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/x86_64-linux-gnu
190+
- else
191+
- ./configure --prefix=/usr
192+
- fi
193+
- if [ ${TRAVIS} == "false" ]; then
194+
- make clean
195+
- fi
196+
- make
197+
- make install
159198

160199
after_scripts:
161-
- make distcheck > /dev/null
162-
# Just look at the error output and return 0 always.
163-
- 'if [ $? -ne 0 ];then RED="\033[0;31m"; NC="\033[0m"; printf "${RED}!!! ERROR: Run make distcheck failed.${NC}\n"; fi'
200+
- make distcheck

0 commit comments

Comments
 (0)