|
| 1 | +version: 3.7+av{build} |
| 2 | +pull_requests: |
| 3 | + do_not_increment_build_number: true |
| 4 | +branches: |
| 5 | + except: |
| 6 | + - /v[0-9]/ |
| 7 | +skip_tags: true |
| 8 | + |
| 9 | +os: |
| 10 | +- Visual Studio 2015 |
| 11 | + |
| 12 | +shallow_clone: true |
| 13 | + |
| 14 | +matrix: |
| 15 | + fast_finish: true |
| 16 | + |
| 17 | +environment: |
| 18 | + PlatformToolset: v140 |
| 19 | + matrix: |
| 20 | + - configuration: Release |
| 21 | + platform: Win32 |
| 22 | + bin_dir: bin32 |
| 23 | + artifact_suffix: -Win32 |
| 24 | + - configuration: Release-SSE2 |
| 25 | + platform: Win32 |
| 26 | + bin_dir: bin32 |
| 27 | + artifact_suffix: -Win32-sse2 |
| 28 | + - configuration: Release |
| 29 | + platform: x64 |
| 30 | + bin_dir: bin64 |
| 31 | + artifact_suffix: -Win64 |
| 32 | + |
| 33 | +before_build: |
| 34 | +- ps: | |
| 35 | + $env:devenv = $env:VS140COMNTOOLS + '\..\IDE\devenv' |
| 36 | + & $env:devenv windows\vs10\povray.sln /upgrade |
| 37 | + $env:pov_autobuild_a = '#define POV_RAY_IS_AUTOBUILD 1' |
| 38 | + $env:pov_autobuild_b = '#define POV_RAY_AUTOBUILD_ID "av' + $env:APPVEYOR_BUILD_NUMBER + '"' |
| 39 | + (Get-Content source\base\build.h).replace('//{POV_AUTOBUILD_A}', $env:pov_autobuild_a) | Set-Content source\base\build.h |
| 40 | + (Get-Content source\base\build.h).replace('//{POV_AUTOBUILD_B}', $env:pov_autobuild_b) | Set-Content source\base\build.h |
| 41 | + (Get-Content source\base\build.h).replace('//{POV_AUTOBUILD_C}', $env:pov_autobuild_c) | Set-Content source\base\build.h |
| 42 | + (Get-Content source\base\build.h).replace('//{POV_AUTOBUILD_1}', $env:pov_autobuild_1) | Set-Content source\base\build.h |
| 43 | + (Get-Content source\base\build.h).replace('//{POV_AUTOBUILD_2}', $env:pov_autobuild_2) | Set-Content source\base\build.h |
| 44 | + (Get-Content source\base\build.h).replace('//{POV_AUTOBUILD_3}', $env:pov_autobuild_3) | Set-Content source\base\build.h |
| 45 | + (Get-Content source\base\build.h).replace('YOUR NAME (YOUR EMAIL)', $env:pov_authorized_by) | Set-Content source\base\build.h |
| 46 | + (Get-Content source\base\build.h).replace('#error Please fill in BUILT_BY, then remove this line', '') | Set-Content source\base\build.h |
| 47 | +
|
| 48 | +build: |
| 49 | + project: windows\vs10\povray.sln |
| 50 | + parallel: true |
| 51 | + verbosity: minimal |
| 52 | + |
| 53 | +after_build: |
| 54 | +- ps: | |
| 55 | + $env:pov_exe_version = (Get-Content unix\VERSION) |
| 56 | + $env:pov_version = "v" + $env:pov_exe_version + '+av' + $env:APPVEYOR_BUILD_NUMBER |
| 57 | + $env:pov_zipdir = "povray-" + $env:pov_exe_version + '-av' + $env:APPVEYOR_BUILD_NUMBER + $env:artifact_suffix |
| 58 | + $env:pov_binary = "Windows\vs10\" + $env:bin_dir + "\pvengine*.exe" |
| 59 | + $env:pov_zip = "artifacts\" + $env:pov_zipdir + ".7z" |
| 60 | + New-Item -ItemType directory -Path $env:pov_zipdir | Out-Null |
| 61 | + New-Item -ItemType directory -Path "artifacts" | Out-Null |
| 62 | + Copy-Item $env:pov_binary $env:pov_zipdir |
| 63 | + & "7z" "a" "-r" $env:pov_zip $env:pov_zipdir |
| 64 | +
|
| 65 | +test: off |
| 66 | + |
| 67 | +artifacts: |
| 68 | +- path: artifacts\*.7z |
| 69 | + name: binaryOnly7z |
| 70 | + |
| 71 | +deploy: |
| 72 | +- provider: GitHub |
| 73 | + tag: $(pov_version) |
| 74 | + release: Development build $(pov_version) |
| 75 | + description: '**Note:** This is a binary-only development release; to install, copy the binary into an existing POV-Ray 3.7 installation. (Make sure to backup the original binary first.)' |
| 76 | + auth_token: |
| 77 | + secure: WkcFPXyr/SJ9TXixTQyivhfoR9FzlryIbc4deHeQ0eA6YRXL0wQopMYJ6XL1/FJK |
| 78 | + draft: true |
| 79 | + prerelease: true |
0 commit comments