blob: e7654a491ae458d5031d44c3f130d760a39d4ba0 [file] [log] [blame]
Richard Burtondc0c6ed2020-04-08 16:39:05 +01001#!/bin/bash
2set -e
3
4JENKINS_BUILD=0
5while getopts ":j" opt; do
6 case "$opt" in
7 j) JENKINS_BUILD=1 ;;
8 esac
9done
10
11python3.6 -m venv toxenv
12source toxenv/bin/activate
13pip install virtualenv==16.3.0 tox
14
15export ARMNN_INCLUDE=$(pwd)/../../include
16python ./swig_generate.py
17
18tox -e devenv
19# If jenkins build, also run unit tests, generate docs, etc
20if [ $JENKINS_BUILD == 1 ]; then
21 tox
22 tox -e doc
23fi
24
25deactivate
26rm -rf toxenv
27
28source env/bin/activate