image: fedora:latest

before_script:
  - dnf install 'dnf-command(copr)' git libtool make -y
  - dnf copr enable @spice/nightly -y
  - dnf builddep spice -y

makecheck:
  script:
  - ./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)

syntax-check:
  script:
  - ./autogen.sh
  - make syntax-check

image: fedora:latest

before_script:
  - dnf install 'dnf-command(copr)' git libtool make libasan -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)

syntax-check:
  script:
  - ./autogen.sh
  - make syntax-check

Enable address sanitizer on GitLab CI
tests: Enable address sanitizer on GitLab CI

Add required library and options so tests will use the
sanitizer.

Signed-off-by: Frediano Ziglio <55d48b080b2e443e395cde84d2c83b135a4ff48e@redhat.com>
Acked-by: Pavel Grunt <fbda40b445316123f12a5a6bd7556918ea74f4bc@redhat.com>
