|
|
|
version: "{build}"
|
|
|
|
|
|
|
|
clone_depth: 5
|
|
|
|
|
|
|
|
platform:
|
|
|
|
- x64
|
|
|
|
- x86
|
|
|
|
|
|
|
|
configuration:
|
|
|
|
- Release
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
|
|
|
install:
|
|
|
|
- cmd: python -m pip install PyYAML
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
# C:\projects\duktape
|
|
|
|
#- set
|
|
|
|
#- dir "C:\Program Files\"
|
|
|
|
#- dir "C:\Program Files (x86)\"
|
|
|
|
|
|
|
|
# PATH doesn't include any 'cl' by default, not sure how to do this correctly.
|
|
|
|
# https://msdn.microsoft.com/en-us/library/f2ccy3wt.aspx
|
|
|
|
# Multi-line commands are run line-by-line (?)
|
|
|
|
- cmd: set VCPATH="\Program Files (x86)\Microsoft Visual Studio 12.0\VC"
|
|
|
|
- cmd: set VCPLATFORM="NONE"
|
|
|
|
- cmd: if "%PLATFORM%"=="x86" ( set VCPLATFORM=x86 )
|
|
|
|
- cmd: if "%PLATFORM%"=="x64" ( set VCPLATFORM=x86_amd64 )
|
|
|
|
- cmd: echo PLATFORM=%PLATFORM%, VCPLATFORM=%VCPLATFORM%
|
|
|
|
- cmd: "%VCPATH%\\vcvarsall %VCPLATFORM%"
|
|
|
|
|
|
|
|
# Normal build
|
|
|
|
- cmd: cd C:\projects\duktape
|
|
|
|
- cmd: python util\make_dist.py
|
|
|
|
- cmd: cl /W3 /O2 /Idist\src /Idist\examples\cmdline dist\src\duktape.c dist\examples\cmdline\duk_cmdline.c /Feduk.exe
|
|
|
|
- cmd: del *.obj *.lib
|
|
|
|
|
|
|
|
# DLL build
|
|
|
|
- cmd: cl /W3 /O2 /DDUK_OPT_DLL_BUILD /Idist\src /LD dist\src\duktape.c
|
|
|
|
- cmd: cl /W3 /O2 /DDUK_OPT_DLL_BUILD /Idist\src /Idist\examples\cmdline dist\examples\cmdline\duk_cmdline.c /Feduk-dll.exe duktape.lib
|
|
|
|
|
|
|
|
- cmd: dir
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
- cmd: duk.exe -e "print(Duktape.env);"
|
|
|
|
- cmd: duk.exe -e "print('Hello world!');"
|
|
|
|
- cmd: duk-dll.exe -e "print(Duktape.env);"
|
|
|
|
- cmd: duk-dll.exe -e "print('Hello world!');"
|