Add CI tests

This commit is contained in:
Peng Wu 2019-12-02 18:11:02 +08:00
parent 585168c447
commit fa96f0ce47
2 changed files with 44 additions and 0 deletions

15
tests/make_check.sh Normal file
View File

@ -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 $?

29
tests/tests.yml Normal file
View File

@ -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