summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2017-11-23 15:34:19 -0800
committerBob Ippolito <bob@redivi.com>2017-11-23 15:34:19 -0800
commitc165de2f020b34ff335339fb12e618acea384914 (patch)
tree548edbea892011693e84dee8b094871ecabe46ed
parent6e0bd8e88b56b0bb3b67b092972acdbab1f6b202 (diff)
downloadsimplejson-c165de2f020b34ff335339fb12e618acea384914.tar.gz
build sdist from travis
-rw-r--r--.travis.yml5
-rwxr-xr-x.travis/run.sh6
2 files changed, 9 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 49278fa..61c7fa0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,6 +29,7 @@ matrix:
dist: trusty
sudo: false
python: '3.6'
+ env: BUILD_SDIST=true
- os: linux
sudo: false
python: pypy
@@ -49,7 +50,9 @@ deploy:
provider: releases
api_key:
secure: QiadMGAmtPw+Ut7LWqa3U/tImPIgiPH79mM9o8DGBckcacp9HkDYvCGuOjs5hZbCBBuQ6IAkikotS8iCSwHey1GK9jSDbpgKvVGiACdp8HNhitY8V/S3e1UukDlMeu+Q7vCJtynSGX0BJuiOQB8ZQyQ2HEZ7kMQgTLCEO1Uljhc=
- file: dist/*.whl
+ file:
+ - dist/*.whl
+ - dist/*.tar.gz
file_glob: true
on:
repo: simplejson/simplejson
diff --git a/.travis/run.sh b/.travis/run.sh
index 3720ce5..72b5c29 100755
--- a/.travis/run.sh
+++ b/.travis/run.sh
@@ -15,5 +15,9 @@ python -m compileall -f .
python setup.py test
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
- python setup.py bdist_wheel
+ python setup.py bdist_wheel
+fi
+
+if [[ $BUILD_SDIST == 'true' ]]; then
+ python setup.py sdist
fi