source: sasview/build_tools/jenkins_win_build.bat @ 10ab40e

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 10ab40e was 5dab2bc, checked in by wojciech, 8 years ago

Adding sasmodels testing for OSX and Windows builds

  • Property mode set to 100644
File size: 2.7 KB
Line 
1set PYTHON=c:\python27\python
2set EASY_INSTALL=c:\python27\scripts\easy_install.exe
3set PATH=c:\python27;c:\mingw\bin;%PATH%
4set PYLINT= C:\Python27\Scripts\pylint
5set INNO="C:\Program Files (x86)\Inno Setup 5\ISCC.exe"
6set GIT_SED=C:\"Program Files (x86)"\Git\bin\sed.exe
7set SAS_COMPILER=mingw
8
9
10set PYTHONPATH=%PYTHONPATH%;%WORKSPACE%\sasview\utils
11set PYTHONPATH=%PYTHONPATH%;%WORKSPACE%\sasview\sasview-install
12
13echo %PYTHONPATH%
14echo %WORKSPACE%
15
16
17:: SET SASVIEW GITHASH ################################################
18cd %WORKSPACE%
19cd sasview\sasview
20git rev-parse HEAD > tmpFile_githash
21SET /p githash= < tmpFile_githash
22DEL tmpFile_githash
23%GIT_SED% -i.bak "s/GIT_COMMIT/%githash%/g" __init__.py
24
25
26
27:: MAKE DIR FOR EGGS ##################################################
28cd %WORKSPACE%
29cd sasview
30MD sasview-install
31MD utils
32
33
34:: SASMODELS build ####################################################
35cd %WORKSPACE%
36cd sasmodels
37%PYTHON% setup.py build
38
39
40
41:: SASMODELS doc ######################################################
42cd doc
43make html
44
45
46:: SASMODELS build egg ################################################
47cd %WORKSPACE%
48cd sasmodels
49%PYTHON% setup.py bdist_egg
50%PYTHON% -m sasmodels.model_test all
51
52:: SASMODELS install egg ##############################################
53cd %WORKSPACE%
54cd sasmodels
55cd dist
56echo F | xcopy sasmodels-*.egg sasmodels.egg /Y
57%EASY_INSTALL% -d %WORKSPACE%\sasview\utils sasmodels.egg
58
59
60:: NOW BUILD SASVIEW
61
62:: SASVIEW build egg ################################################
63:: Remember to modify C:\Python27\Lib\distutils\distutils.cfg to you compiler
64cd %WORKSPACE%
65cd sasview
66%PYTHON% setup.py build docs bdist_egg
67
68
69:: SASVIEW utest ######################################################
70cd %WORKSPACE%\sasview\test
71%PYTHON% utest_sasview.py
72
73
74:: SASVIEW INSTALL EGG ################################################
75cd %WORKSPACE%
76cd sasview
77cd dist
78echo F | xcopy sasview-*.egg sasview.egg /Y
79%EASY_INSTALL% -d %WORKSPACE%\sasview\sasview-install sasview.egg
80
81
82:: TINYCC build ####################################################
83cd %WORKSPACE%
84cd tinycc
85%PYTHON% setup.py build
86xcopy /S build\lib\* %WORKSPACE%\sasview\utils\
87
88:: SASVIEW INSTALLER ##################################################
89cd %WORKSPACE%
90cd sasview
91cd sasview
92%PYTHON% setup_exe.py py2exe
93%PYTHON% installer_generator.py
94%INNO% installer.iss
95cd Output
96xcopy setupSasView.exe %WORKSPACE%\sasview\dist
97
98:: SASVIEW PYLINT #####################################################
99cd %WORKSPACE%\sasview
100%PYLINT% --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview.egg/sas sasview > test/sasview.txt
101
102
103:: GO BACK ############################################################
104cd %WORKSPACE%
Note: See TracBrowser for help on using the repository browser.