Skip to content

Commit

Permalink
cut test travis
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Oct 1, 2023
1 parent 1c7d200 commit 6cc04ae
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions fortran/tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ rm -Rf dist/*
rm -Rf build/*
rm -f camb/*.so

if [[ $TRAVIS_REPO_SLUG == "cmbant/CAMB" && $PYPI_DIST == "true" && "$TRAVIS_PULL_REQUEST" == "false" ]]
then
case "$TRAVIS_BRANCH" in
devel*) export CAMB_PACKAGE_NAME=camb_devel ;;
*) export CAMB_PACKAGE_NAME=camb
esac
python setup.py sdist
pip install twine
twine upload -r pypitest --repository-url https://test.pypi.org/legacy/ dist/* || true
#too much delay on test.pypi to reliably immediately test install
# mkdir -p test_dir
# pushd test_dir
# pip install --index-url https://test.pypi.org/simple/ $CAMB_PACKAGE_NAME
# python -c "import camb; print(camb.__version__)"
# python -m unittest tests.camb_test
# pip uninstall -y $CAMB_PACKAGE_NAME
# popd
fi

case "$TRAVIS_BRANCH" in
devel*)
BRANCH="master"
Expand Down

0 comments on commit 6cc04ae

Please sign in to comment.