source: sasview/build_tools/jenkins_win_build.bat @ 6c6aa83

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