Skip to content

Commit

Permalink
update release script and travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jul 11, 2015
1 parent 910ceba commit 1d2ad46
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ branches:
only:
- master

-before_install:
before_install:
- sudo apt-get -qq -y update

install:
- sudo apt-get install -y python-software-properties
- sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
- sudo apt-get update
- sudo apt-get install -y git qgis python-qgis xvfb python-nose python-coverage pyflakes python-nosexcover python-scientific python-beautifulsoup
- sudo apt-get install -y git qgis python-qgis xvfb python-nose python-coverage pyflakes python-nosexcover
- pip install --upgrade pip
- pip install --upgrade pep8
- pip install --upgrade pylint
Expand All @@ -31,7 +31,9 @@ before_script:

script:
- make pep8
- xvfb-run --server-args="-screen 0, 1024x768x24" nosetests -A 'not slow' -v --with-id --with-xcoverage --with-xunit --verbose --cover-package=core
- xvfb-run --server-args="-screen 0, 1024x768x24" nosetests -A 'not slow' -v --with-id --with-xcoverage --with-xunit --verbose --cover-package=core core


notifications:
email:
- etienne.trimaille@gmail.com
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pep8:
@echo "PEP8 issues"
@echo "-----------"
@pep8 --version
@pep8 --repeat --exclude test/qgis_interface.py,test/utilities.py,resources_rc.py,./ui/main_window.py,./ui/my_queries.py,./ui/osm_file.py,./ui/save_query.py,./ui/query.py,./ui/quick_query.py . || true
@pep8 --repeat --ignore=E203,E121,E122,E123,E124,E125,E126,E127,E128,E402 --exclude test/qgis_interface.py,test/utilities.py,resources_rc.py,./ui/main_window.py,./ui/my_queries.py,./ui/osm_file.py,./ui/save_query.py,./ui/query.py,./ui/quick_query.py . || true

pylint:
@echo
Expand Down
3 changes: 1 addition & 2 deletions core/test/test_query_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
# This import is to enable SIP API V2
# noinspection PyUnresolvedReferences
import qgis # pylint: disable=unused-import
from QuickOSM.test.utilities import get_qgis_app

from test.utilities import get_qgis_app
QGIS_APP, CANVAS, IFACE, PARENT = get_qgis_app()

from QuickOSM.core.query_factory import QueryFactory
Expand Down
3 changes: 1 addition & 2 deletions core/test/test_query_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
# This import is to enable SIP API V2
# noinspection PyUnresolvedReferences
import qgis # pylint: disable=unused-import
from QuickOSM.test.utilities import get_qgis_app

from test.utilities import get_qgis_app
QGIS_APP, CANVAS, IFACE, PARENT = get_qgis_app()

from qgis.core import QgsRectangle
Expand Down
5 changes: 5 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,22 @@ echo "Make a zip"
cp -R QuickOSM/ QuickOSM_back/
rm QuickOSM.zip
cd QuickOSM/
git clean
git reset --HARD HEAD
make clean_pyc
find . -name "*.ui" -type f -delete
find . -name "*.qrc" -type f -delete
find . -name "*.ts" -type f -delete
find . -name "test" -type f -delete
rm -rf .git
rm -rf .idea
rm .gitignore
rm Makefile
rm QuickOSM.pro
rm README.md
rm release.sh
rm .travis.yml
rm .coverage

cd ..
zip -r QuickOSM QuickOSM/
Expand Down

0 comments on commit 1d2ad46

Please sign in to comment.