Skip to content

Commit ac4cabf

Browse files
committed
tweak install script
1 parent fe40c9d commit ac4cabf

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.ci/ci-01-install.sh

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ export CPATH=$SUNDBASE/include:${CPATH:-}
44
export LIBRARY_PATH=$SUNDBASE/lib
55
export LD_LIBRARY_PATH=$SUNDBASE/lib
66
source /opt-3/cpython-v3.*-apt-deb/bin/activate
7-
7+
PYTHON=python
88
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
1010
case $pypkg in
1111
sym)
1212
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
2929
pyodesys)
3030
pypkg_fqn="git+https://github.com/bjodah/pyodesys@bdf2#egg=pyodesys"
3131
;;
32+
pykinsol)
33+
pypkg_fqn="git+https://github.com/bjodah/pykinsol@jan25#egg=pykinsol"
34+
;;
3235
*)
3336
pypkg_fqn=$pypkg
3437
;;
3538
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 )
3841
done
3942

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"
4245
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)
4447
git archive -o dist/chempy-head.zip HEAD # test pip installable zip (symlinks break)
4548
mkdir -p deploy/public_html/branches/${CI_COMMIT_BRANCH}
4649
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

Comments
 (0)