source: sasview/build_tools/jenkins_win64_build.bat @ b53f529

ESS_GUIESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_openclESS_GUI_sync_sascalc
Last change on this file since b53f529 was a2a1c20, checked in by Paul Kienzle <pkienzle@…>, 7 years ago

make pkg_resources optional

  • Property mode set to 100644
File size: 2.5 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\src\sas\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%PYTHON% -m sasmodels.model_test all
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 ################################################
62cd %WORKSPACE%
63cd sasview
64%PYTHON% setup.py build docs bdist_egg
65
66
67:: SASVIEW utest ######################################################
68cd %WORKSPACE%\sasview\test
69%PYTHON% utest_sasview.py
70
71
72:: SASVIEW INSTALL EGG ################################################
73cd %WORKSPACE%
74cd sasview
75cd dist
76echo F | xcopy sasview-*.egg sasview.egg /Y
77%EASY_INSTALL% -d %WORKSPACE%\sasview\sasview-install sasview.egg
78
79
80:: SASVIEW INSTALLER ##################################################
81cd %WORKSPACE%
82cd sasview
83cd installers
84%PYTHON% setup_exe.py py2exe
85%PYTHON% installer_generator.py
86%INNO% installer.iss
87cd Output
88xcopy setupSasView.exe %WORKSPACE%\sasview\dist
89
90:: SASVIEW PYLINT #####################################################
91cd %WORKSPACE%\sasview
92%PYLINT% --rcfile "build_tools/pylint.rc" -f parseable sasview-install/sasview.egg/sas sasview > test/sasview.txt
93
94
95:: GO BACK ############################################################
96cd %WORKSPACE%
Note: See TracBrowser for help on using the repository browser.