@@ -4,9 +4,9 @@ export CPATH=$SUNDBASE/include:${CPATH:-}
4
4
export LIBRARY_PATH=$SUNDBASE /lib
5
5
export LD_LIBRARY_PATH=$SUNDBASE /lib
6
6
source /opt-3/cpython-v3.* -apt-deb/bin/activate
7
-
7
+ PYTHON=python
8
8
INSTALL_PIP_FLAGS=" --cache-dir $CACHE_ROOT /pip_cache ${INSTALL_PIP_FLAGS:- } " # --user
9
- for pypkg in pyodeint pygslodeiv2 pycompilation pycodeexport pycvodes sym pyodesys; do
9
+ for pypkg in pyodeint pygslodeiv2 pycompilation pycodeexport pycvodes pykinsol sym pyodesys; do
10
10
case $pypkg in
11
11
sym)
12
12
pypkg_fqn=" git+https://github.com/bjodah/sym@jun21#egg=sym"
@@ -29,18 +29,25 @@ for pypkg in pyodeint pygslodeiv2 pycompilation pycodeexport pycvodes sym pyodes
29
29
pyodesys)
30
30
pypkg_fqn=" git+https://github.com/bjodah/pyodesys@bdf2#egg=pyodesys"
31
31
;;
32
+ pykinsol)
33
+ pypkg_fqn=" git+https://github.com/bjodah/pykinsol@jan25#egg=pykinsol"
34
+ ;;
32
35
* )
33
36
pypkg_fqn=$pypkg
34
37
;;
35
38
esac
36
- python -m pip install $INSTALL_PIP_FLAGS $pypkg_fqn
37
- # ( cd /tmp; python -m pytest -k "not pool_discontinuity_approx" --pyargs $pypkg )
39
+ $PYTHON -m pip install $INSTALL_PIP_FLAGS $pypkg_fqn
40
+ # ( cd /tmp; $PYTHON -m pytest -k "not pool_discontinuity_approx" --pyargs $pypkg )
38
41
done
39
42
40
- python3 -m pip install $INSTALL_PIP_FLAGS -e .[all]
41
- python3 -c " import pycvodes; import pyodesys; import pygslodeiv2"
43
+ $PYTHON -m pip install $INSTALL_PIP_FLAGS -e .[all]
44
+ $PYTHON -c " import pycvodes; import pyodesys; import pygslodeiv2"
42
45
git fetch -tq
43
- python3 setup.py sdist # test pip installable sdist (checks MANIFEST.in)
46
+ $PYTHON setup.py sdist # test pip installable sdist (checks MANIFEST.in)
44
47
git archive -o dist/chempy-head.zip HEAD # test pip installable zip (symlinks break)
45
48
mkdir -p deploy/public_html/branches/${CI_COMMIT_BRANCH}
46
49
cp dist/chempy-* deploy/public_html/branches/${CI_COMMIT_BRANCH} /
50
+
51
+ [[ $( $PYTHON setup.py --version) =~ ^[0-9]+.* ]]
52
+ ./scripts/run_tests.sh --cov chempy --cov-report html
53
+ ./scripts/coverage_badge.py htmlcov/ htmlcov/coverage.svg
0 commit comments