$env:VCVARS_PLATFORM="amd64"
$env:TARGET="VC-WIN64A"
}
+ - ps: >-
+ If ($env:Configuration -Match "shared") {
+ $env:SHARED=""
+ } Else {
+ $env:SHARED="no-shared"
+ }
- ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
- call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
- - perl Configure %TARGET% no-asm
+ - mkdir _build
+ - cd _build
+ - perl ..\Configure %TARGET% no-asm %SHARED%
+ - cd ..
build_script:
+ - cd _build
- nmake
+ - cd ..
test_script:
+ - cd _build
- nmake test
+ - cd ..
+
+# Fake deploy script to test installation
+deploy_script:
+ - mkdir _install
+ - cd _build
+ - nmake install install_docs DESTDIR=..\_install
+ - cd ..
notifications:
- provider: Email