Skip to content

Commit d8590dc

Browse files
yetistraveit65
authored andcommitted
Initialize Travis CI support
1 parent 6bfb3b1 commit d8590dc

File tree

1 file changed

+112
-0
lines changed

1 file changed

+112
-0
lines changed

‎.travis.yml‎

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
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/mozo
39+
- gcc
40+
- git
41+
- gobject-introspection
42+
- gtk3
43+
- intltool
44+
- make
45+
- mate-common
46+
- mate-menus
47+
- python-gobject
48+
- which
49+
50+
debian:
51+
# Useful URL: https://github.com/mate-desktop/debian-packages
52+
# Useful URL: https://salsa.debian.org/debian-mate-team/mozo
53+
- gettext
54+
- git
55+
- gobject-introspection
56+
- intltool
57+
- libmate-menu-dev
58+
- make
59+
- mate-common
60+
- python-gi-dev
61+
- python3
62+
63+
fedora:
64+
# Useful URL: https://src.fedoraproject.org/cgit/rpms/mozo.git
65+
- desktop-file-utils
66+
- gcc
67+
- git
68+
- make
69+
- mate-common
70+
- mate-menus-devel
71+
- pygobject3-devel
72+
- python3-devel
73+
- redhat-rpm-config
74+
75+
ubuntu:
76+
- gettext
77+
- git
78+
- gobject-introspection
79+
- intltool
80+
- libmate-menu-dev
81+
- make
82+
- mate-common
83+
- python-gi-dev
84+
- python3
85+
86+
variables:
87+
- CFLAGS="-Wall -Werror=format-security"
88+
89+
before_scripts:
90+
- if [ ${DISTRO_NAME} == "debian" ];then
91+
- curl -Ls -o debian.sh https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/debian.sh
92+
- bash ./debian.sh
93+
- fi
94+
95+
- cd ${START_DIR}
96+
- if [ ! -d mate-menus-build ]; then
97+
- git clone --depth 1 https://github.com/mate-desktop/mate-menus.git mate-menus-build
98+
- fi
99+
- cd mate-menus-build
100+
- if [ ${DISTRO_NAME} == "debian" -o ${DISTRO_NAME} == "ubuntu" ];then
101+
- ./autogen.sh --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/x86_64-linux-gnu
102+
- else
103+
- ./autogen.sh --prefix=/usr
104+
- fi
105+
- if [ ${TRAVIS} == "false" ]; then
106+
- make clean
107+
- fi
108+
- make
109+
- make install
110+
111+
after_scripts:
112+
- make distcheck

0 commit comments

Comments
 (0)