#3 Added CI tests
Merged 4 years ago by pnemade. Opened 4 years ago by pnemade.
Unknown source master  into  master

file modified
+13 -1
@@ -7,7 +7,7 @@

  

  Name:           fonttools

  Version:        4.9.0

- Release:        2%{?dist}

+ Release:        3%{?dist}

  Summary:        Tools to manipulate font files

  License:        MIT

  URL:            https://github.com/fonttools/fonttools/
@@ -26,6 +26,12 @@

  %{?python_provide:%python_provide python3-%{name}}

  BuildRequires:  python3-devel

  BuildRequires:  python3-setuptools_scm

+ BuildRequires:  python3-pytest

+ BuildRequires:  python3-brotli

+ BuildRequires:  python3-munkres

+ BuildRequires:  python3-scipy

+ BuildRequires:  python3-fs

+ 

  BuildArch:      noarch

  

  Requires:       python3-brotli
@@ -50,6 +56,9 @@

  %install

  %{__python3} setup.py install --skip-build --root %{buildroot}

  

+ %check

+ PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} -m pytest --ignore Tests/misc/plistlib_test.py

+ 

  %files

  %{_bindir}/pyftmerge

  %{_bindir}/pyftsubset
@@ -64,6 +73,9 @@

  %{python3_sitelib}/%{name}-%{version}-py3.?.egg-info

  

  %changelog

+ * Fri May 08 2020 Parag Nemade <pnemade AT redhat DOT com> - 4.9.0-3

+ - enable tests

+ 

  * Thu May 07 2020 Parag Nemade <pnemade AT redhat DOT com> - 4.9.0-2

  - Fix source tarball

  

@@ -0,0 +1,3 @@

+ #!/bin/bash

+ cd ../source

+ python3 -m pytest --ignore Tests/misc/plistlib_test.py

file added
+26
@@ -0,0 +1,26 @@

+ ---

+ - hosts: localhost

+   tags:

+   - classic

+   roles:

+   - role: standard-test-source

+  

+ - hosts: localhost

+   tags:

+   - classic

+   roles:

+   - role: standard-test-basic

+     tests:

+     - smoke

+     required_packages:

+     - python3-pytest

+     - python3-brotli

+     - python3-scipy

+     - python3-pluggy

+     - python3-packaging

+     - python3-attrs

+     - python3-pyparsing

+     - python3-gobject

+     - atk-devel

+     - pango-devel

+     - gtk3-devel