]>
Commit | Line | Data |
---|---|---|
68db80e2 | 1 | platform: |
68db80e2 | 2 | - x64 |
fd74aba8 | 3 | - x86 |
68db80e2 AG |
4 | |
5 | environment: | |
fd74aba8 | 6 | fast_finish: true |
68db80e2 | 7 | matrix: |
68db80e2 AG |
8 | - VSVER: 14 |
9 | ||
10 | configuration: | |
68db80e2 | 11 | - shared |
fd74aba8 | 12 | - plain |
68db80e2 | 13 | |
68db80e2 AG |
14 | before_build: |
15 | - ps: >- | |
16 | If ($env:Platform -Match "x86") { | |
17 | $env:VCVARS_PLATFORM="x86" | |
fe9aa764 | 18 | $env:TARGET="VC-WIN32 no-asm" |
68db80e2 AG |
19 | } Else { |
20 | $env:VCVARS_PLATFORM="amd64" | |
fe9aa764 | 21 | $env:TARGET="VC-WIN64A-masm" |
68db80e2 | 22 | } |
f527b6e4 RL |
23 | - ps: >- |
24 | If ($env:Configuration -Match "shared") { | |
f527b6e4 | 25 | $env:SHARED="" |
e951eca8 MC |
26 | } Else { |
27 | $env:SHARED="no-shared" | |
f527b6e4 | 28 | } |
68db80e2 AG |
29 | - ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS")) |
30 | - call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM% | |
14c42019 RL |
31 | - mkdir _build |
32 | - cd _build | |
fe9aa764 | 33 | - perl ..\Configure %TARGET% %SHARED% |
14c42019 | 34 | - cd .. |
fd74aba8 | 35 | - ps: >- |
6356716a AP |
36 | if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER` |
37 | -or (&git log -2 | Select-String "\[extended tests\]") ) { | |
fd74aba8 AP |
38 | $env:EXTENDED_TESTS="yes" |
39 | } | |
68db80e2 AG |
40 | |
41 | build_script: | |
3de47fb2 | 42 | - cd _build |
fd74aba8 AP |
43 | - ps: >- |
44 | If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) { | |
6356716a | 45 | cmd /c "nmake 2>&1" |
fd74aba8 | 46 | } |
3de47fb2 | 47 | - cd .. |
68db80e2 AG |
48 | |
49 | test_script: | |
3de47fb2 | 50 | - cd _build |
fd74aba8 AP |
51 | - ps: >- |
52 | If ($env:Configuration -Match "shared" -or $env:EXTENDED_TESTS) { | |
fd74aba8 | 53 | if ($env:EXTENDED_TESTS) { |
6356716a | 54 | cmd /c "nmake test V=1 2>&1" |
fd74aba8 | 55 | } Else { |
6356716a | 56 | cmd /c "nmake test V=1 TESTS=-test_fuzz 2>&1" |
fd74aba8 | 57 | } |
fd74aba8 | 58 | } |
3de47fb2 AP |
59 | - ps: >- |
60 | if ($env:EXTENDED_TESTS) { | |
61 | mkdir ..\_install | |
62 | cmd /c "nmake install install_docs DESTDIR=..\_install 2>&1" | |
63 | } | |
64 | - cd .. |