d9049f9
---
d9049f9
- hosts: localhost
d9049f9
  tags:
d9049f9
    - classic
d9049f9
  roles:
d9049f9
  - role: standard-test-source
d9049f9
d9049f9
- hosts: localhost
d9049f9
  tags:
d9049f9
    - classic
d9049f9
  tasks:
d9049f9
  - name: Make sure fedpkg and selinux bindings are installed
26c8091
    shell: dnf -y install fedpkg python{2,3}-libselinux libmodulemd-devel --skip-broken
d9049f9
  - name: Copy spec file to remote machine
d9049f9
    copy:
d9049f9
      src: "{{ playbook_dir }}/../libmodulemd.spec"
d9049f9
      dest: /tmp/libmodulemd.spec
d9049f9
  - name: Install build deps
d9049f9
    shell: dnf -y build-dep /tmp/libmodulemd.spec
d9049f9
d9049f9
- hosts: localhost
d9049f9
  tags:
d9049f9
    - classic
d9049f9
  roles:
d9049f9
  - role: standard-test-basic
d9049f9
    tests:
d9049f9
    - build:
d9049f9
        dir: .
d9049f9
        run: meson -Dtest_installed_lib=true -Ddeveloper_build=false source
2b8d400
    - unittests:
d9049f9
        dir: .
d9049f9
        run: ninja test