1
:: Author: Natalia B. Bidart <natalia.bidart@canonical.com>
3
:: Copyright 2011 Canonical Ltd.
5
:: This program is free software: you can redistribute it and/or modify it
6
:: under the terms of the GNU General Public License version 3, as published
7
:: by the Free Software Foundation.
9
:: This program is distributed in the hope that it will be useful, but
10
:: WITHOUT ANY WARRANTY; without even the implied warranties of
11
:: MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
12
:: PURPOSE. See the GNU General Public License for more details.
14
:: You should have received a copy of the GNU General Public License along
15
:: with this program. If not, see <http://www.gnu.org/licenses/>.
17
:: call setup.py build so that the qt uic is called
21
SET MODULE="ubuntuone"
22
SET PYTHONEXEPATH="C:\Python27"
23
SET IGNORE_PATHS="ubuntuone\controlpanel\gui\gtk, ubuntuone\controlpanel\dbustests"
1
:: Copyright 2011-12 Canonical Ltd.
3
:: This program is free software: you can redistribute it and/or modify it
4
:: under the terms of the GNU General Public License version 3, as published
5
:: by the Free Software Foundation.
7
:: This program is distributed in the hope that it will be useful, but
8
:: WITHOUT ANY WARRANTY; without even the implied warranties of
9
:: MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
10
:: PURPOSE. See the GNU General Public License for more details.
12
:: You should have received a copy of the GNU General Public License along
13
:: with this program. If not, see <http://www.gnu.org/licenses/>.
15
:: call setup.py build so that the qt uic is called
19
SET MODULE="ubuntuone"
20
SET PYTHONEXEPATH="C:\Python27"
21
SET IGNORE_PATHS="ubuntuone\controlpanel\gui\gtk, ubuntuone\controlpanel\dbustests"
24
22
SET IGNORE_MODULES="test_linux.py, test_libsoup.py"
26
"%PYTHONEXEPATH%\python.exe" setup.py build
28
:: execute the tests with a number of ignored linux only modules
29
"%PYTHONEXEPATH%\python.exe" "%PYTHONEXEPATH%\Scripts\u1trial" --reactor=qt4 --gui -p %IGNORE_PATHS% -i %IGNORE_MODULES% %MODULE%
30
:: Clean the build from the setupt.py
31
ECHO Cleaning the generated code before running the style checks...
32
"%PYTHONEXEPATH%\python.exe" setup.py clean
33
ECHO Performing style checks...
34
"%PYTHONEXEPATH%\python.exe" "%PYTHONEXEPATH%\Scripts\u1lint" --ignore ubuntuone\controlpanel\gui\qt\ui "%MODULE%"
35
"%PYTHONEXEPATH%\Scripts\pep8.exe" --exclude ".svn,CVS,.bzr,.hg,.git,*_ui.py,*_rc.py" --repeat . bin\*
36
:: Delete the temp folders
37
RMDIR /s /q _trial_temp
25
:: lets check if we pass the /skip-lint param, if we did we remember and use shift
26
if "%1" == "/skip-lint" SET SKIPLINT=1
28
"%PYTHONEXEPATH%\python.exe" setup.py build
30
:: execute the tests with a number of ignored linux only modules
31
"%PYTHONEXEPATH%\python.exe" "%PYTHONEXEPATH%\Scripts\u1trial" --reactor=qt4 --gui -p %IGNORE_PATHS% -i %IGNORE_MODULES% %MODULE%
32
:: Clean the build from the setupt.py
33
ECHO Cleaning the generated code
34
"%PYTHONEXEPATH%\python.exe" setup.py clean
36
IF %SKIPLINT% == 1 GOTO :CLEAN
37
ECHO Performing style checks...
38
"%PYTHONEXEPATH%\python.exe" "%PYTHONEXEPATH%\Scripts\u1lint" --ignore ubuntuone\controlpanel\gui\qt\ui "%MODULE%"
39
"%PYTHONEXEPATH%\Scripts\pep8.exe" --exclude ".svn,CVS,.bzr,.hg,.git,*_ui.py,*_rc.py" --repeat . bin\*
41
:: Delete the temp folders
42
RMDIR /s /q _trial_temp