Skip to content

Commit

Permalink
Update PyPT
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <[email protected]>
  • Loading branch information
Kwpolska committed Jul 30, 2017
1 parent 0894125 commit 3a149ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .pypt/config
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ LOCALETYPE="gettext-tx"
# Python versions supported.
PYTHON2=0
PYTHON3=1

# Whether or not to create AUR -git packages. (true/false)
AUR_GIT_PACKAGE="true"
6 changes: 3 additions & 3 deletions release
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ status 'Generating locales...'

status 'Importing...'
python -c "import $PROJECTLC"
if [[ $? == 1 ]]; then
if [[ $? != 0 ]]; then
error "Import failed. Fix your code or don't come back."
exit 1
fi

if [[ -e tests ]]; then
status 'Running tests...'
py.test tests/
if [[ $? == 1 ]]; then
pytest tests/
if [[ $? != 0 ]]; then
error "Tests failed. Fix your code or don't come back."
exit 1
fi
Expand Down

0 comments on commit 3a149ec

Please sign in to comment.