-
Notifications
You must be signed in to change notification settings - Fork 0
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 #2 from ogdch/develop
Release 1.0.1
- Loading branch information
Showing
8 changed files
with
66 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: python | ||
|
||
python: | ||
- '2.7' | ||
|
||
install: pip install -r pip-requirements.txt | ||
|
||
script: ./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,15 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
function cleanup { | ||
exit $? | ||
} | ||
|
||
trap "cleanup" EXIT | ||
|
||
# Check PEP-8 code style and McCabe complexity | ||
flake8 --show-pep8 --show-source ckanext | ||
|
||
# run tests | ||
# nosetests --verbose |
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
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,5 @@ | ||
# This file lists the dependencies of this extension. | ||
# Install with a command like: pip install -r pip-requirements.txt | ||
boto==2.9.8 | ||
xlrd==0.9.2 | ||
flake8==2.1.0 |
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,26 @@ | ||
#!/bin/bash | ||
|
||
function cleanup { | ||
if [[ $? > 0 ]] ; then | ||
echo "You might want to run 'git stash pop' in order to get your files back" | ||
fi | ||
} | ||
|
||
trap "cleanup" EXIT | ||
|
||
FILENAME=$0 | ||
if [ -h $FILENAME ] ; then | ||
FILENAME=`readlink -e $FILENAME` | ||
fi | ||
DIR=`dirname $FILENAME` | ||
|
||
# make sure only changes of the current commit are affected | ||
git stash -q -u --keep-index | ||
|
||
flake8 ckanext | ||
|
||
exit_code=$? | ||
|
||
git stash pop -q | ||
|
||
exit $exit_code |
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 @@ | ||
[flake8] |