-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #614 from slycordinator/shellcheck_fixes
Fixes for shell scripts according to output from shellcheck
- Loading branch information
Showing
3 changed files
with
23 additions
and
15 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
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,3 +1,4 @@ | ||
#!/bin/sh | ||
# TODO: Run under Python 2.7 and 3.7 | ||
flake8 . --count --exit-zero --select=E901,E999,F821,F822,F823 --show-source --statistics || true | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics || true |
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,15 +1,21 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
set -exo pipefail | ||
set -ex | ||
|
||
version=$1 | ||
pyabitag=$2 | ||
|
||
py="/opt/python/${pyabitag}/bin/python" | ||
pytag=${pyabitag%-*} | ||
pytag="${pytag//cp/py}" | ||
$py -m pip install pytest unittest2 | ||
$py setup.py bdist_wheel --python-tag=$pytag | ||
$py -m pip install dist/future-$version-$pytag-none-any.whl | ||
pytag=$2 | ||
|
||
if [ "$pytag" = 'py33' ]; then | ||
pip3 install virtualenv==16.2.0 | ||
fi | ||
|
||
. /root/"$pytag"/bin/activate | ||
|
||
if [ "$pytag" = 'py26' ]; then | ||
pip install importlib | ||
fi | ||
pip install pytest unittest2 | ||
python setup.py bdist_wheel --python-tag="$pytag" | ||
pip install "dist/future-$version-$pytag-none-any.whl" | ||
# Ignore test failures for now | ||
$py -m pytest tests/ || true | ||
pytest tests/ || true |