language: c
sudo: required
dist: xenial
install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-opam.sh
script: bash .travis-extra-deps.sh
env:
  global:
    - POST_INSTALL_HOOK="bash .travis-test-compile.sh"
    - PINS="0install-solver.dev:. 0install.dev:. 0install-gtk.dev:."
jobs:
  include:
    - env: OCAML_VERSION=4.08 PACKAGE="0install"
      os: linux

    - env: OCAML_VERSION=4.08 PACKAGE="0install-gtk"
      os: linux

    - env: STATIC_DIST=true
      os: linux
      services:
        - docker

    - env: OCAML_VERSION=4.09 PACKAGE="0install-gtk"
      os: osx
addons:
  apt:
    update: true
