Skip to content

Commit c15a018

Browse files
yetistraveit65
authored andcommitted
Initialize travis support
1 parent b7dffb4 commit c15a018

1 file changed

Lines changed: 111 additions & 0 deletions

File tree

.travis.yml

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
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+
# Use travis branch for test.
9+
#branches:
10+
# only:
11+
# - travis
12+
13+
before_install:
14+
- curl -L -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/travis/travis/docker-build
15+
- chmod +x docker-build
16+
17+
install:
18+
- ./docker-build --name ${DISTRO} --config .travis.yml --install
19+
20+
script:
21+
- ./docker-build --name ${DISTRO} --verbose --config .travis.yml --build autotools
22+
23+
env:
24+
- DISTRO="base/archlinux"
25+
- DISTRO="debian:sid"
26+
- DISTRO="fedora:29"
27+
- DISTRO="ubuntu:18.10"
28+
29+
##########################################################
30+
# THE FOLLOWING LINES IS USED BY docker-build
31+
##########################################################
32+
requires:
33+
archlinux:
34+
# Useful URL: https://git.archlinux.org/svntogit/community.git/tree/trunk?h=packages/mate-desktop
35+
- gcc
36+
- git
37+
- gobject-introspection
38+
- gtk3
39+
- intltool
40+
- iso-codes
41+
- make
42+
- mate-common
43+
- startup-notification
44+
45+
debian:
46+
# Useful URL: https://github.com/mate-desktop/debian-packages
47+
# Useful URL: https://salsa.debian.org/debian-mate-team/mate-desktop
48+
- git
49+
- gobject-introspection
50+
- gtk-doc-tools
51+
- intltool
52+
- iso-codes
53+
- libdconf-dev
54+
- libgirepository1.0-dev
55+
- libglib2.0-dev
56+
- libglib2.0-doc
57+
- libgtk-3-dev
58+
- libgtk-3-doc
59+
- libstartup-notification0-dev
60+
- libx11-dev
61+
- libxml2-dev
62+
- libxrandr-dev
63+
- mate-common
64+
65+
fedora:
66+
# Useful URL: https://src.fedoraproject.org/cgit/rpms/mate-desktop.git
67+
- cairo-gobject-devel
68+
- dconf-devel
69+
- desktop-file-utils
70+
- gcc
71+
- git
72+
- gobject-introspection-devel
73+
- gtk3-devel
74+
- iso-codes-devel
75+
- itstool
76+
- make
77+
- mate-common
78+
- redhat-rpm-config
79+
- startup-notification-devel
80+
81+
ubuntu:
82+
# Same as debian
83+
- git
84+
- gobject-introspection
85+
- gtk-doc-tools
86+
- intltool
87+
- iso-codes
88+
- libdconf-dev
89+
- libgirepository1.0-dev
90+
- libglib2.0-dev
91+
- libglib2.0-doc
92+
- libgtk-3-dev
93+
- libgtk-3-doc
94+
- libstartup-notification0-dev
95+
- libx11-dev
96+
- libxml2-dev
97+
- libxrandr-dev
98+
- mate-common
99+
100+
variables:
101+
- CFLAGS="-Wall -Werror=format-security"
102+
103+
configures:
104+
autotools:
105+
- --prefix=/usr
106+
- --enable-gtk-doc
107+
108+
after_scripts:
109+
- make distcheck > /dev/null
110+
# It will fail on debian, so it always returns 0, but can see the error message.
111+
- 'if [ $? -ne 0 ];then RED="\033[0;31m"; NC="\033[0m"; printf "${RED}!!! ERROR: Run make distcheck failed.${NC}\n"; fi'

0 commit comments

Comments
 (0)