language: c
install:
  - wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-docker.sh
  - wget https://raw.githubusercontent.com/xapi-project/xapi-travis-scripts/v0.1/coverage.sh
script:
    - bash -ex .travis-docker.sh
sudo: required
services:
    - docker
env:
  global:
    - OCAML_VERSION=4.04.2
    - PINS="xcp:."
    - PACKAGE=xapi-idl
    - DISTRO="debian-unstable"
  matrix:
    - BASE_REMOTE=git://github.com/xapi-project/xs-opam \
      POST_INSTALL_HOOK="env TRAVIS=$TRAVIS TRAVIS_JOB_ID=$TRAVIS_JOB_ID TEST_DEPS="alcotest" TEST_CMD='jbuilder runtest --no-buffer' bash -ex coverage.sh"
    - EXTRA_REMOTES=git://github.com/xapi-project/xs-opam
matrix:
    fast_finish: true
    allow_failures:
        - env: EXTRA_REMOTES=git://github.com/xapi-project/xs-opam


language: c
install:
  - wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-docker.sh
  - wget https://raw.githubusercontent.com/xapi-project/xapi-travis-scripts/v0.1/coverage.sh
script:
    - bash -ex .travis-docker.sh
sudo: required
services:
    - docker
env:
  global:
    - OCAML_VERSION=4.04.2
    - PINS="xcp:."
    - PACKAGE=xapi-idl
    - DISTRO="debian-testing"
  matrix:
    - BASE_REMOTE=git://github.com/xapi-project/xs-opam \
      POST_INSTALL_HOOK="env TRAVIS=$TRAVIS TRAVIS_JOB_ID=$TRAVIS_JOB_ID TEST_DEPS="alcotest" TEST_CMD='jbuilder runtest --no-buffer' bash -ex coverage.sh"
    - EXTRA_REMOTES=git://github.com/xapi-project/xs-opam
matrix:
    fast_finish: true
    allow_failures:
        - env: EXTRA_REMOTES=git://github.com/xapi-project/xs-opam


Use DISTRO=debian-testing to work around curl error
Use DISTRO=debian-testing to work around curl error

Debian unstable has TLS1.0/1.1 disabled, and curl cannot download any package from forge.ocamlcore.org
because it only supports TLS1.0.
Use Debian testing for now which still supports TLS1.0.

Signed-off-by: Edwin Török <c8d178016cbaf8a6ef23c2cbc9db96123c48b7dc@citrix.com>
