From fa96f0ce477618169cedf997ae956e090282669d Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Dec 02 2019 10:11:02 +0000 Subject: Add CI tests --- diff --git a/tests/make_check.sh b/tests/make_check.sh new file mode 100644 index 0000000..7e5a313 --- /dev/null +++ b/tests/make_check.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -x + +check_return_value () { + if [ $1 != 0 ] ; then + exit $1 + fi +} + +cd $1 +./configure --prefix=/usr +check_return_value $? +make check +exit $? diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..1504ee3 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,29 @@ +- hosts: localhost + vars: + - artifacts: "{{ lookup('env', 'TEST_ARTIFACTS')|default('./artifacts', true) }}" + tags: + - classic + remote_user: root + roles: + - role: standard-test-source # to get the source tar ball to do “make check” + - role: standard-test-basic + required_packages: + - make + - libappstream-glib + - desktop-file-utils + - python3-gobject + - python3-gobject-base + - glib2 + - gtk3 + - dconf + - dbus-x11 + - ibus + - ibus-devel + - gcc + - intltool + - python3-devel + - libhangul-devel + tests: + - make-check: + dir: ./ + run: bash ./make_check.sh ./source