language: node_js
node_js: "lts/carbon"
sudo: required
dist: trusty

env:
  global:
    - OCAML_VERSION=4.04
    - OPAM_SWITCH=4.04.2
    - OPAMYES=true
    - UBUNTU_TRUSTY=1

matrix:
  include:
    - os: linux
      env: DEPLOY=true
    - os: linux
      env: TEST=true
  allow_failures:
    - os: linux
      env: TEST=true

cache:
  directories:
  - $HOME/.opam


install:
  - wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-ocaml.sh
  - bash -ex .travis-ocaml.sh
  - make init
  - if [ -n "$TEST" ]; then make test_init; fi
  - eval `opam config env`

script:
  - make
  - if [ -n "$TEST" ]; then make test; fi

deploy:
  skip_cleanup: true
  provider: script
  script: make publish-github
  on:
    condition: $DEPLOY = true
    all_branches: true


language: node_js
node_js: "lts/carbon"
sudo: required
dist: trusty

env:
  global:
    - OCAML_VERSION=4.04
    - OPAM_SWITCH=4.04.2
    - OPAMYES=true
    - UBUNTU_TRUSTY=1

matrix:
  include:
    - os: linux
      env: DEPLOY=true
    - os: linux
      env: TEST=true
  allow_failures:
    - os: linux
      env: TEST=true

cache:
  directories:
  - $HOME/.opam


install:
  - wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-ocaml.sh
  - bash -ex .travis-ocaml.sh
  - make init
  - if [ -n "$TEST" ]; then make test_init; fi
  - eval `opam config env`

script:
  - make
  - make test_generator
  - if [ -n "$TEST" ]; then make test_jsjsref; fi

deploy:
  skip_cleanup: true
  provider: script
  script: make publish-github
  on:
    condition: $DEPLOY = true
    all_branches: true


Test generator in all build types
Test generator in all build types
