From ad6784d419f4f92bdf917bf85e7f95f525067d62 Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Tue, 21 Mar 2017 19:49:32 -0700 Subject: [PATCH] Test httplib2 transport package on travis --- httplib2_transport/MANIFEST.in | 2 ++ httplib2_transport/tox.ini | 4 ++-- scripts/travis.sh | 10 ++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 httplib2_transport/MANIFEST.in diff --git a/httplib2_transport/MANIFEST.in b/httplib2_transport/MANIFEST.in new file mode 100644 index 000000000..aac7fe13a --- /dev/null +++ b/httplib2_transport/MANIFEST.in @@ -0,0 +1,2 @@ +include README.rst LICENSE +recursive-include tests * diff --git a/httplib2_transport/tox.ini b/httplib2_transport/tox.ini index 5d7457efa..84635e83c 100644 --- a/httplib2_transport/tox.ini +++ b/httplib2_transport/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = lint,py27,py34,py35,pypy,cover +envlist = lint,py27,py34,py35,py36,pypy,cover [testenv] deps = @@ -16,7 +16,7 @@ commands = py.test --cov=google_auth_httplib2 --cov=tests {posargs:tests} [testenv:cover] -basepython = python3.5 +basepython = python3.6 commands = py.test --cov=google_auth_httplib2 --cov=tests --cov-report= tests coverage report --show-missing --fail-under=100 diff --git a/scripts/travis.sh b/scripts/travis.sh index 7359a0cbe..9e11de85f 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -14,6 +14,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +set -eo pipefail + DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ROOT=$( dirname "$DIR" ) @@ -36,4 +38,12 @@ if [[ -n $SYSTEM_TEST ]]; then fi # Run tox. +echo "Running tox..." tox + +# Run tox for sub-packages. +if [[ $TOXENV != "docs" && -z $SYSTEM_TEST ]]; then + echo "Running tox for httplib2_transport..." + cd httplib2_transport + tox +fi