source: sasview/build_tools/jenkins_win_build.bat @ 3b8efec

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.1.1release-4.1.2release-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 3b8efec was a78bc87, checked in by trnielsen, 8 years ago

Update Windows build script

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