Skip to content

Commit

Permalink
Adding CI for ONNX Debug mode (Linux, OSX) (onnx#2651)
Browse files Browse the repository at this point in the history
* adding an osx build, linux build, with and without onnx_ml for debug mode

* test debug mode with ONNX_ML=1
  • Loading branch information
vinitra authored Mar 26, 2020
1 parent 46fe392 commit 2987fa0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {} \;

0 comments on commit 2987fa0

Please sign in to comment.