2021-05-30 23:27:28 +05:30
|
|
|
#
|
|
|
|
# Gramps - a GTK+/GNOME based genealogy program
|
|
|
|
#
|
|
|
|
# Copyright (C) 2021 Nick Hall
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
|
|
|
|
name: Gramps CI
|
|
|
|
|
2023-08-02 20:08:23 +05:30
|
|
|
on: [push, pull_request]
|
2021-05-30 23:27:28 +05:30
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2023-03-08 03:13:37 +05:30
|
|
|
runs-on: ubuntu-20.04
|
2021-05-30 23:27:28 +05:30
|
|
|
|
|
|
|
steps:
|
2023-07-30 21:33:24 +05:30
|
|
|
- uses: actions/checkout@v3
|
2021-05-30 23:27:28 +05:30
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2022-03-17 03:18:05 +05:30
|
|
|
sudo apt-get update
|
2021-05-30 23:27:28 +05:30
|
|
|
sudo apt-get install gir1.2-pango-1.0
|
|
|
|
sudo apt-get install gir1.2-gtk-3.0
|
|
|
|
sudo apt-get install xdg-utils
|
|
|
|
sudo apt-get install librsvg2-common
|
|
|
|
sudo apt-get install libglib2.0-dev
|
|
|
|
sudo apt-get install intltool
|
|
|
|
sudo apt-get install python3-gi
|
|
|
|
sudo apt-get install python3-cairo
|
|
|
|
sudo apt-get install python3-gi-cairo
|
|
|
|
sudo apt-get install python3-bsddb3
|
|
|
|
sudo apt-get install python3-dev
|
|
|
|
sudo apt-get install python3-nose
|
|
|
|
sudo apt-get install python3-mock
|
|
|
|
sudo apt-get install python3-icu
|
|
|
|
sudo apt-get install python3-coverage
|
|
|
|
sudo apt-get install python3-jsonschema
|
|
|
|
sudo apt-get install libxml2-utils
|
|
|
|
sudo apt-get install python3-lxml
|
|
|
|
sudo apt-get install python-libxml2
|
|
|
|
sudo apt-get install zlib1g-dev
|
|
|
|
sudo apt-get install python3-setuptools
|
|
|
|
- name: Install addons
|
|
|
|
run: |
|
|
|
|
mkdir -p ~/.gramps/gramps52/plugins/
|
|
|
|
wget https://github.com/gramps-project/addons/raw/master/gramps52/download/CliMerge.addon.tgz
|
|
|
|
tar -C ~/.gramps/gramps52/plugins -xzf CliMerge.addon.tgz
|
|
|
|
wget https://github.com/gramps-project/addons/raw/master/gramps52/download/ExportRaw.addon.tgz
|
|
|
|
tar -C ~/.gramps/gramps52/plugins -xzf ExportRaw.addon.tgz
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
python3 setup.py build
|
|
|
|
- name: Run unit test suite
|
|
|
|
run: |
|
2023-07-15 02:26:33 +05:30
|
|
|
export GDK_BACKEND=-
|
2021-05-30 23:27:28 +05:30
|
|
|
python3 setup.py test
|
|
|
|
- name: Trailing whitespace check
|
|
|
|
run: |
|
|
|
|
if git --no-pager grep --color -n --full-name '[ ]$' -- \*.py; then
|
|
|
|
echo "ERROR - Trailing whitespace found in source file(s)";
|
|
|
|
exit 1;
|
|
|
|
fi
|