Skip to content

Commit baa264c

Browse files
committed
TST: release testing
1 parent ba60321 commit baa264c

File tree

4 files changed

+28
-21
lines changed

4 files changed

+28
-21
lines changed

ci/install_travis.sh

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,7 @@ if [ "$COVERAGE" ]; then
119119
fi
120120

121121
echo
122-
if [ "$BUILD_TEST" ]; then
123-
124-
# build & install testing
125-
echo ["Starting installation test."]
126-
bash ci/install_release_build.sh
127-
conda uninstall -y cython
128-
time pip install dist/*tar.gz || exit 1
129-
130-
else
122+
if [ -z "$BUILD_TEST" ]; then
131123

132124
# build but don't install
133125
echo "[build em]"
@@ -163,9 +155,22 @@ fi
163155
# w/o removing anything else
164156
echo
165157
echo "[removing installed pandas]"
166-
conda remove pandas --force
158+
conda remove pandas -y --force
167159

168-
if [ -z "$BUILD_TEST" ]; then
160+
if [ "$BUILD_TEST" ]; then
161+
162+
# remove any installation
163+
pip uninstall -y pandas
164+
conda list pandas
165+
pip list --format columns |grep pandas
166+
167+
# build & install testing
168+
echo ["building release"]
169+
bash scripts/build_dist_for_release.sh
170+
conda uninstall -y cython
171+
time pip install dist/*tar.gz || exit 1
172+
173+
else
169174

170175
# install our pandas
171176
echo

ci/script_multi.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,23 @@ export PYTHONHASHSEED=$(python -c 'import random; print(random.randint(1, 429496
1919
echo PYTHONHASHSEED=$PYTHONHASHSEED
2020

2121
if [ "$BUILD_TEST" ]; then
22-
echo "build-test"
22+
echo "[build-test]"
23+
24+
echo "[env]"
25+
pip list --format columns |grep pandas
26+
27+
echo "[running]"
2328
cd /tmp
24-
pwd
25-
conda list pandas
26-
echo "running"
29+
unset PYTHONPATH
2730
python -c "import pandas; pandas.test(['-n 2'])"
31+
2832
elif [ "$DOC" ]; then
2933
echo "We are not running pytest as this is a doc-build"
34+
3035
elif [ "$COVERAGE" ]; then
3136
echo pytest -s -n 2 -m "not single" --cov=pandas --cov-report xml:/tmp/cov-multiple.xml --junitxml=/tmp/multiple.xml $TEST_ARGS pandas
3237
pytest -s -n 2 -m "not single" --cov=pandas --cov-report xml:/tmp/cov-multiple.xml --junitxml=/tmp/multiple.xml $TEST_ARGS pandas
38+
3339
else
3440
echo pytest -n 2 -m "not single" --junitxml=/tmp/multiple.xml $TEST_ARGS pandas
3541
pytest -n 2 -m "not single" --junitxml=/tmp/multiple.xml $TEST_ARGS pandas # TODO: doctest

scripts/build_dist.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ read -p "Ok to continue (y/n)? " answer
1010
case ${answer:0:1} in
1111
y|Y )
1212
echo "Building distribution"
13-
rm -rf dist
14-
git clean -xfd
15-
python setup.py clean
16-
python setup.py cython
17-
python setup.py sdist --formats=gztar
13+
./build_dist_for_release.sh
1814
;;
1915
* )
2016
echo "Not building distribution"

ci/install_release_build.sh renamed to scripts/build_dist_for_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# this requires cython to be installed
44

5-
# this builds the release cleanly
5+
# this builds the release cleanly & is building on the current checkout
66
rm -rf dist
77
git clean -xfd
88
python setup.py clean

0 commit comments

Comments
 (0)