source: sasview/build_tools/jenkins_win64_build.bat @ 661bd79

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since 661bd79 was c313c88, checked in by Piotr Rozyczko <rozyczko@…>, 8 years ago

Updated win64 jenkins script

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