image: debian/stable
packages:
  - libzmq3-dev
  - wget
sources:
  - https://github.com/kyllingstad/zmqd.git
tasks:
  - setup: |
      sudo wget https://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
      sudo apt-get update --allow-insecure-repositories && sudo apt-get -y --allow-unauthenticated install dmd-compiler dub
  - build: |
      cd zmqd
      dub build
  - test: |
      cd zmqd
      dub test
