From 2987fa066e7950cb0fca0f66fa2e84d7f63ab5f6 Mon Sep 17 00:00:00 2001 From: Vinitra Swamy Date: Wed, 25 Mar 2020 18:03:41 -0700 Subject: [PATCH] Adding CI for ONNX Debug mode (Linux, OSX) (#2651) * adding an osx build, linux build, with and without onnx_ml for debug mode * test debug mode with ONNX_ML=1 --- .travis.yml | 13 +++++++++++++ .travis/install.sh | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5abb6f90e99..8d7c5580a80 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,16 @@ matrix: env: PYTHON_VERSION=python3 ONNX_ML=0 language: python python: "3.6" + - os: linux + sudo: required + env: PYTHON_VERSION=python3 ONNX_ML=0 ONNX_DEBUG=1 + language: python + python: "3.6" + - os: linux + sudo: required + env: PYTHON_VERSION=python3 ONNX_ML=1 ONNX_DEBUG=1 + language: python + python: "3.6" - os: osx osx_image: xcode9.3 env: PYTHON_VERSION=python2 ONNX_ML=0 @@ -34,6 +44,9 @@ matrix: - os: osx osx_image: xcode9.3 env: PYTHON_VERSION=python3 + - os: osx + osx_image: xcode9.3 + env: PYTHON_VERSION=python3 ONNX_DEBUG=1 - os: linux sudo: required env: PYTHON_VERSION=python2 LITE=1 diff --git a/.travis/install.sh b/.travis/install.sh index 1c6555eea83..edfc75db787 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -13,5 +13,9 @@ fi export CMAKE_ARGS="${CMAKE_ARGS} -DONNXIFI_DUMMY_BACKEND=ON" export ONNX_NAMESPACE=ONNX_NAMESPACE_FOO_BAR_FOR_CI +if [ "${ONNX_DEBUG}" == "1" ]; then + export DEBUG=1 +fi + time python setup.py --quiet bdist_wheel --universal --dist-dir . find . -maxdepth 1 -name "*.whl" -ls -exec pip install {} \;