os: linux
arch: amd64
dist: bionic
language: python
python: 3.6
cache: pip

# Required
# - ONNX 1.6 (Opset 11), TensorFlow 1.15.0, Sep 2019
# - ONNX 1.6 (Opset 11), TensorFlow 1.15.3, May 2020
# Optional
# - ONNX 1.7 (Opset 12), TensorFlow 1.15.3, May 2020

env:
  - ONNX_PIP=onnx==1.6.0 TF_PIP=tensorflow==1.15.0
  - ONNX_PIP=onnx==1.6.0 TF_PIP=tensorflow==1.15.3
  - ONNX_PIP=onnx==1.7.0 TF_PIP=tensorflow==1.15.3

jobs:
  fast_finish: true
  # Be aware when updating the dependency versions.
  # Envs below must match *exactly* an env from above,
  # otherwise an env failure will fail the overall build.
  allow_failures:
    - env: ONNX_PIP=onnx==1.7.0 TF_PIP=tensorflow==1.15.3

before_install: pip install -U setuptools
install: pip install $ONNX_PIP $TF_PIP
before_script: pip install -e .
script: python -m unittest discover test -v
