spice/.gitlab-ci.yml
Frediano Ziglio 0660e92017 ci: Fix build on gitlab
The build dependencies are installed based on spice package which does
not still contains orc-devel package needed by ORC check (cfr commit
"gstreamer: Check if ORC library can work", 14aee7cd74).

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe de Dinechin <dinechin@redhat.com>
2017-09-01 10:55:34 +01:00

39 lines
1.1 KiB
YAML

image: fedora:latest
before_script:
- dnf install 'dnf-command(copr)' git libtool make libasan orc-devel -y
- dnf copr enable @spice/nightly -y
- dnf builddep spice -y
makecheck:
script:
- >
CFLAGS='-O2 -pipe -g -fsanitize=address -fno-omit-frame-pointer'
LDFLAGS='-fsanitize=address -lasan'
./autogen.sh
- make
- make -C server check || (cat server/tests/test-suite.log && exit 1)
statistics:
script:
- ./autogen.sh --enable-statistics
- make
- make -C server check || (cat server/tests/test-suite.log && exit 1)
check-valgrind:
script:
- dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm -y
- dnf debuginfo-install spice-server glib2 -y
- >
dnf install valgrind
gstreamer1-libav gstreamer1-plugins-ugly gstreamer1-plugins-good gstreamer1-plugins-bad-free
-y
- ./autogen.sh --enable-valgrind --enable-extra-checks
- make
- make check-valgrind || (cat server/tests/test-suite-memcheck.log && exit 1)
syntax-check:
script:
- ./autogen.sh
- make syntax-check