aboutsummaryrefslogtreecommitdiff
path: root/python/pyarmnn/init_devenv.sh
blob: f19a076ef9e608656c5d2ed0725180434033b54b (plain)
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
#!/bin/bash
set -e

JENKINS_BUILD=0
while getopts ":j" opt; do
    case "$opt" in 
        j) JENKINS_BUILD=1 ;;
    esac
done

python3.6 -m venv toxenv
source toxenv/bin/activate
pip install virtualenv==16.3.0 tox

tox -e devenv
# If jenkins build, also run unit tests, generate docs, etc
if [ $JENKINS_BUILD == 1 ]; then
    tox
    tox -e doc
fi

deactivate
rm -rf toxenv

source env/bin/activate