Skip to content

Commit

Permalink
add archlinux build on travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yetist authored and raveit65 committed Feb 8, 2019
1 parent e6ec733 commit b205683
Showing 1 changed file with 71 additions and 34 deletions.
105 changes: 71 additions & 34 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@ language: bash
services:
- docker

# Use travis branch for test.
#branches:
# only:
# - travis

before_install:
- curl -L -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/travis/travis/docker-build
- curl -Ls -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/docker-build
- chmod +x docker-build

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

env:
- DISTRO="archlinux/base"
- DISTRO="debian:sid"
- DISTRO="fedora:29"
- DISTRO="ubuntu:18.10"
Expand All @@ -29,13 +25,31 @@ env:
# THE FOLLOWING LINES IS USED BY docker-build
##########################################################
requires:
archlinux:
# Useful URL: https://git.archlinux.org/svntogit/community.git/tree/mate-control-center
- gcc
- git
- make
- which
# Append new requires below
- gobject-introspection
- intltool
- itstool
- libxss
- marco
- mate-common
- mate-menus
- mate-settings-daemon
- yelp-tools

debian:
# Useful URL: https://github.com/mate-desktop/debian-packages
# Useful URL: https://salsa.debian.org/debian-mate-team/mate-control-center
- git
- make
# Append new requires below
- curl
- desktop-file-utils
- dpkg-dev
- git
- gobject-introspection
- intltool
- libcanberra-gtk3-dev
Expand Down Expand Up @@ -68,12 +82,14 @@ requires:

fedora:
# Useful URL: https://src.fedoraproject.org/cgit/rpms/mate-control-center.git
- gcc
- git
- make
- redhat-rpm-config
# Append new requires below
- cairo-gobject-devel
- dconf-devel
- desktop-file-utils
- gcc
- git
- gobject-introspection-devel
- gobject-introspection-devel
- gtk3-devel
- iso-codes-devel
Expand All @@ -84,20 +100,18 @@ requires:
- libcanberra-devel
- libmatekbd-devel
- librsvg2-devel
- make
- marco-devel
- mate-common
- mate-settings-daemon-devel
- redhat-rpm-config
- startup-notification-devel
- which

ubuntu:
# Same as debian
- git
- make
# Append new requires below
- curl
- desktop-file-utils
- dpkg-dev
- git
- gobject-introspection
- intltool
- libcanberra-gtk3-dev
Expand Down Expand Up @@ -132,32 +146,55 @@ variables:
- CFLAGS="-Wall -Werror=format-security"

before_scripts:
# These scripts should keep silent.
- cd ${START_DIR}
- '[ -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'
- if [ ! -f mate-desktop-1.21.2.tar.xz ];then
- 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
- fi
- tar xf mate-desktop-1.21.2.tar.xz
- cd mate-desktop-1.21.2
- 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
- make > /dev/null 2>&1
- make install >/dev/null 2>&1
- 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
- else
- ./configure --prefix=/usr
- fi
- if [ ${TRAVIS} == "false" ]; then
- make clean
- fi
- make
- make install

- cd ${START_DIR}
- git clone --depth 1 https://github.com/mate-desktop/mate-menus.git
- cd mate-menus
- ./autogen.sh >/dev/null 2>&1
- 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
- make > /dev/null 2>&1
- make install > /dev/null 2>&1
- if [ ! -d mate-menus-build ]; then
- git clone --depth 1 https://github.com/mate-desktop/mate-menus.git mate-menus-build
- fi
- cd mate-menus-build
- if [ ${DISTRO_NAME} == "debian" -o ${DISTRO_NAME} == "ubuntu" ];then
- ./autogen.sh --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/x86_64-linux-gnu
- else
- ./autogen.sh --prefix=/usr
- fi
- if [ ${TRAVIS} == "false" ]; then
- make clean
- fi
- make
- make install

- cd ${START_DIR}
- '[ -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'
- if [ ! -f mate-settings-daemon-1.21.2.tar.xz ]; then
- 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
- fi
- tar xf mate-settings-daemon-1.21.2.tar.xz
- cd mate-settings-daemon-1.21.2
- 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
- make > /dev/null 2>&1
- make install > /dev/null 2>&1
- 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
- else
- ./configure --prefix=/usr
- fi
- if [ ${TRAVIS} == "false" ]; then
- make clean
- fi
- make
- make install

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

0 comments on commit b205683

Please sign in to comment.