38 lines
770 B
Bash
38 lines
770 B
Bash
#!/bin/sh
|
|
# -*- mode: sh; tab-width: 8; coding: utf-8-unix -*-
|
|
|
|
PREFIX=/usr/local
|
|
. /usr/local/etc/testforge/testforge.bash
|
|
ROLE=toxcore
|
|
|
|
PYVER=3
|
|
P="BASE_PYTHON${PYVER}_MINOR"
|
|
PYTHON_MINOR="$(eval echo \$$P)"
|
|
PYTHON_EXE_MSYS=$PREFIX/bin/python$PYVER.bash
|
|
PYTHON_EXE=$PYTHON_EXE_MSYS
|
|
|
|
. /usr/local/src/usr_local_src.bash || exit 2
|
|
|
|
PKG=stem_examples
|
|
DIR=$PKG
|
|
|
|
#/var/local/bin/python3.bash setup.py install --prefix=/var/local
|
|
|
|
ols_funtoo_requires dev-libs/stem
|
|
|
|
# requires: py.test
|
|
#? ols_pip${PYVER}_requires readme_renderer
|
|
|
|
cd $PREFIX/src || exit 2
|
|
WD=$PWD
|
|
|
|
if [ $# -eq 0 ] ; then
|
|
:
|
|
elif [ "$1" = 'lint' ] ; then # 2*
|
|
cd $PREFIX/src/$DIR || exit 20
|
|
bash .pylint.sh 2>&1 || exit 2$?
|
|
|
|
elif [ "$1" = 'test' ] ; then # 3*
|
|
cd $PREFIX/src/$DIR || exit 30
|
|
fi
|