---
  language: go
  sudo: required
  notifications:
    email: false
  go:
    - 1.7
  script: make tools .gitvalidation validate test test-skopeo
  dist: trusty
  os:
    - linux
  addons:
    apt:
      packages:
        - btrfs-tools
        - libdevmapper-dev
        - libgpgme11-dev

---
  language: go
  sudo: required
  notifications:
    email: false
  go:
    - 1.7
  env:
    - BUILDTAGS='btrfs_noversion libdm_no_deferred_remove'
    - BUILDTAGS='btrfs_noversion libdm_no_deferred_remove containers_image_openpgp'
  script: make tools .gitvalidation validate test test-skopeo BUILDTAGS="$BUILDTAGS"
  dist: trusty
  os:
    - linux
  addons:
    apt:
      packages:
        - btrfs-tools
        - libdevmapper-dev
        - libgpgme11-dev

Test both the default and openpgp variants in Travis.
Test both the default and openpgp variants in Travis.

This uses the Travis test matrix support; arguably the total time might
be smaller if setting up the VM only once and running both variants
within the shell script.

Signed-off-by: Miloslav Trmač <9c008e38982a5397deb855345fb164f0558459ae@redhat.com>
