source: hudson/build-scripts/spot/windows.bat @ 2458

Revision 2458, 2.8 KB checked in by dbhart, 4 years ago (diff)

Seriously - Who on earth EVER thought spaces in filenames, (or worse, paths) was a good idea?

  • Property svn:executable set to *
Line 
1echo on
2call "%MSVC_PATH%\vcvarsall.bat" %MSVC_ARCH%
3
4@echo =****= =****= WE ARE BUILDING A %BUILD% TYPE BUILD =****= =****=
5@echo ====== CLEANING UP FROM LAST BUILD                                  =INFO=
6
7rmdir /Q /S output
8rmdir /Q /S build
9rmdir /Q /S tmpspot
10rmdir /Q /S tmplight
11rmdir /Q /S offlinespot
12mkdir output
13xcopy checkout build /E /Q /Y /I
14
15@echo ====== BUILDING TEVA-SPOT BINARIES                                  =INFO=
16@echo ======   Building UTILIB binaries                                   =INFO=
17cd %WORKSPACE%\build/tpl/acro/packages/utilib/mvs/nmake
18nmake all
19
20@echo ======   Building TEVA binaries                                     =INFO=
21cd %WORKSPACE%\build\packages\nmake
22nmake JDK_ROOT="%JAVA_HOME%" /F makefile all
23
24@echo ======   Creating ZIP file: tevaspot_bin.zip                        =INFO=
25nmake /F makefile zip
26xcopy /C /R /Y %WORKSPACE%\build\packages\nmake\tevaspot_bin.zip %WORKSPACE%\output
27move %WORKSPACE%\output\tevaspot_bin.zip %WORKSPACE%\output\tevaspot_bin_%SPOT_PLATFORM%.zip
28cd %WORKSPACE%
29
30@echo ====== BUILDING TEVA-SPOT PYTHON LIGHT ============================ =INFO=
31@echo ======   Creating ZIP file: tevaspot_py.zip                         =INFO=
32cd %WORKSPACE%
33set ORIGPATH=%PATH%
34set PATH=%ORIGPATH%;%SVNPATH%;%PYTHONPATH%
35python %WORKSPACE%\checkout\packages\tevaspot\util\spot_install --config=https://software.sandia.gov/svn/teva/spot/vpy/instlight.ini --preinstall --%BUILD% --proxy=http://wwwproxy.sandia.gov tmplight
36set PATH=%ORIGPATH%
37xcopy /C /R /Y tmplight\tevaspot.zip %WORKSPACE%\output
38move %WORKSPACE%\output\tevaspot.zip %WORKSPACE%\output\tevaspot_py_%SPOT_PLATFORM%.zip
39rmdir /Q /S %WORKSPACE%\tmplight
40
41@echo ====== BUILDING TEVA-SPOT PYTHON FULL ============================= =INFO=
42@echo ======   Creating ZIP file: tevaspot_pydata.zip                     =INFO=
43cd %WORKSPACE%
44set ORIGPATH=%PATH%
45set PATH=%ORIGPATH%;%SVNPATH%;%PYTHONPATH%
46python build\packages\tevaspot\util\spot_install --preinstall --%BUILD% --proxy=http://wwwproxy.sandia.gov tmpspot
47set PATH=%ORIGPATH%
48xcopy /C /R /Y %WORKSPACE%\tmpspot\tevaspot.zip %WORKSPACE%\output
49move %WORKSPACE%\output\tevaspot.zip %WORKSPACE%\output\tevaspot_py_data_%SPOT_PLATFORM%.zip
50
51@echo ====== RUNNING TEVA-SPOT INSTALL TEST ============================= =INFO=
52@echo ======   Installing binaries to local test directory                =INFO=
53@echo =****=   YOU MUST HAVE tevaspot_acro.zip PRESENT IN C:\ RIGHT NOW   =WARN=
54cd %WORKSPACE%
55
56python build\packages\tevaspot\util\spot_install --%BUILD% --offline --zip=%WORKSPACE%\build\packages\nmake\tevaspot_bin.zip --zip=%WORKSPACE%\tevaspot_acro.zip --zip=%WORKSPACE%\tmpspot\tevaspot.zip offlinespot
57@echo ======   Running TEVA-SPOT binary acceptance tests                  =INFO=
58cd %WORKSPACE%\offlinespot\test
59..\bin\python runtests
60rmdir /Q /S %WORKSPACE%\tmpspot
Note: See TracBrowser for help on using the repository browser.