-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
27 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
language: generic | ||
before_script: | ||
# Run flake8 tests only on Python 2.7 and 3.7... | ||
# 1) stop the build if there are Python syntax errors or undefined names | ||
# 2) exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
- if [[ $TRAVIS_PYTHON_VERSION == *.7 ]]; then | ||
pip install flake8; | ||
flake8 . --count --exit-zero --select=E901,E999,F821,F822,F823 --show-source --statistics; | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics; | ||
fi | ||
|
||
services: | ||
- docker | ||
|
||
before_script: | ||
- docker pull jmadler/python-future-builder:latest | ||
|
||
script: | ||
- ./buildtest.sh | ||
- ./lint.sh | ||
- ./build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# XXX: TODO: we should make this include -e once tests pass | ||
set -xuo pipefail | ||
|
||
docker build . -t jmadler/python-future-builder | ||
|
||
version=0.18.2 | ||
|
||
for i in py26 py27 py33 py34 py35 py36 py37 py38 py39; do | ||
docker run -ti -v $(realpath dist):/root/python-future/dist python-future-builder /root/python-future/setup.sh $version $(basename $i) | ||
done | ||
|
||
python setup.py sdist | ||
python setup.py clean | ||
echo You may now run: "twine upload dist/*" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Run under Python 2.7 and 3.7 | ||
flake8 . --count --exit-zero --select=E901,E999,F821,F822,F823 --show-source --statistics | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters