From 899ed8e1106d9f7ed9eceec2607d2815484e53b2 Mon Sep 17 00:00:00 2001 From: Tom Ajamian Date: Fri, 17 Apr 2015 11:27:53 -0400 Subject: [PATCH 1/2] TST: adding sdist and install tests to the 2.6 regression - closes #9878 --- .travis.yml | 1 + ci/script.sh | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index bc87853b26d6e..7208d53f2795a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,7 @@ matrix: - LOCALE_OVERRIDE="it_IT.UTF-8" - BUILD_TYPE=conda - JOB_NAME: "26_nslow_nnet" + - INSTALL_TEST=true - python: 2.7 env: - NOSE_ARGS="slow and not network and not disabled" diff --git a/ci/script.sh b/ci/script.sh index fe9db792df5e7..b83a3a2d50d82 100755 --- a/ci/script.sh +++ b/ci/script.sh @@ -23,6 +23,13 @@ else nosetests --exe -A "$NOSE_ARGS" pandas --with-xunit --xunit-file=/tmp/nosetests.xml fi +if [ "$INSTALL_TEST" ]; then + echo "Starting installation test." + conda uninstall cython || exit 1 + python "$TRAVIS_BUILD_DIR"/setup.py sdist --formats=zip,gztar || exit 1 + pip install "$TRAVIS_BUILD_DIR"/dist/*tar.gz || exit 1 + nosetests --exe -A "$NOSE_ARGS" pandas/tests/test_series.py --with-xunit --xunit-file=/tmp/nosetests_install.xml +fi RET="$?" # wait until subprocesses finish (build_docs.sh) From c90e80d67adc553239bf579a74e6a7a5fe272ade Mon Sep 17 00:00:00 2001 From: Tom Ajamian Date: Fri, 17 Apr 2015 11:27:53 -0400 Subject: [PATCH 2/2] TST: adding sdist and install tests to the 2.6 regression - closes #9878 --- .travis.yml | 2 ++ ci/install_test.sh | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 ci/install_test.sh diff --git a/.travis.yml b/.travis.yml index bc87853b26d6e..0d143d7f7133b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,7 @@ matrix: - LOCALE_OVERRIDE="it_IT.UTF-8" - BUILD_TYPE=conda - JOB_NAME: "26_nslow_nnet" + - INSTALL_TEST=true - python: 2.7 env: - NOSE_ARGS="slow and not network and not disabled" @@ -183,6 +184,7 @@ script: # nothing here, or failed tests won't fail travis after_script: + - ci/install_test.sh - if [ -f /tmp/doc.log ]; then cat /tmp/doc.log; fi - source activate pandas && ci/print_versions.py - ci/print_skipped.py /tmp/nosetests.xml diff --git a/ci/install_test.sh b/ci/install_test.sh new file mode 100755 index 0000000000000..e01ad7b94a349 --- /dev/null +++ b/ci/install_test.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +echo "inside $0" + +if [ "$INSTALL_TEST" ]; then + source activate pandas + echo "Starting installation test." + conda uninstall cython || exit 1 + python "$TRAVIS_BUILD_DIR"/setup.py sdist --formats=zip,gztar || exit 1 + pip install "$TRAVIS_BUILD_DIR"/dist/*tar.gz || exit 1 + nosetests --exe -A "$NOSE_ARGS" pandas/tests/test_series.py --with-xunit --xunit-file=/tmp/nosetests_install.xml +else + echo "Skipping installation test." +fi +RET="$?" + +exit "$RET"