forked from onnx/tensorflow-onnx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (30 loc) · 1.22 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
dist: trusty
language: python
env:
addons:
apt:
packages:
- build-essential
- curl
- git
python:
- "3.6"
install:
- curl -L https://repo.continuum.io/miniconda/Miniconda3-4.3.21-Linux-x86_64.sh -o $HOME/miniconda.sh;
PYTHON_VER="3.6m";
- cd $HOME && bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- export LD_LIBRARY_PATH="$HOME/miniconda/lib:$LD_LIBRARY_PATH"
- export LIBRARY_PATH="$HOME/miniconda/lib:$LIBRARY_PATH"
- export CPATH="$HOME/miniconda/include:$CPATH"
- export CPATH="$HOME/miniconda/include/python$PYTHON_VER:$CPATH"
- ls $HOME/miniconda/include/python$PYTHON_VER
- export PATH="$PATH:$PWD/build/bin"
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH$PWD/build/lib"
- conda config --set always_yes yes --set changeps1 no
- conda install -c conda-forge protobuf numpy
- cd $TRAVIS_BUILD_DIR && pip install onnx pytest pytest-cov pytest-runner graphviz tensorflow==1.9 onnxruntime==0.1.4 pylint
- cd $TRAVIS_BUILD_DIR && export PYTHONPATH=pwd
script:
- pylint --rcfile=tools/pylintrc --ignore=version.py --disable=cyclic-import tf2onnx tests/*.py tools
- python -m pytest --cov=tf2onnx --cov-report=term --disable-pytest-warnings tests