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
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
7
8
9set PYTHONPATH=%PYTHONPATH%;%WORKSPACE%\sasview\utils
10set PYTHONPATH=%PYTHONPATH%;%WORKSPACE%\sasview\sasview-install
11
12echo %PYTHONPATH%
13echo %WORKSPACE%
14
15
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
26:: MAKE DIR FOR EGGS ##################################################
27cd %WORKSPACE%
28cd sasview
29MD sasview-install
30MD utils
31
32
33:: SASMODELS build ####################################################
34cd %WORKSPACE%
35cd sasmodels
36%PYTHON% setup.py build
37
38
39
40:: SASMODELS doc ######################################################
41cd doc
42make html
43
44
45:: SASMODELS build egg ################################################
46cd %WORKSPACE%
47cd sasmodels
48%PYTHON% setup.py bdist_egg
49
50
51:: SASMODELS install egg ##############################################
52cd %WORKSPACE%
53cd sasmodels
54cd dist
55echo F | xcopy sasmodels-*.egg sasmodels.egg /Y
56%EASY_INSTALL% -d %WORKSPACE%\sasview\utils sasmodels.egg
57
58
59:: NOW BUILD SASVIEW
60
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
66
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
81:: TINYCC build ####################################################
82cd %WORKSPACE%
83cd tinycc
84%PYTHON% setup.py build
85xcopy /S build\lib\* %WORKSPACE%\sasview\utils\
86
87:: SASVIEW INSTALLER ##################################################
88cd %WORKSPACE%
89cd sasview
90cd sasview
91%PYTHON% setup_exe.py py2exe
92%PYTHON% installer_generator.py
93%INNO% installer.iss
94cd Output
95xcopy setupSasView.exe %WORKSPACE%\sasview\dist
96
97:: SASVIEW PYLINT #####################################################
98cd %WORKSPACE%\sasview
99%PYLINT% --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview.egg/sas sasview > test/sasview.txt
100
101
102:: GO BACK ############################################################
103cd %WORKSPACE%
Note: See TracBrowser for help on using the repository browser.