Skip to content

Commit e1cafea

Browse files
committed
Add configuration files for automated build testing on Travis CI and AppVeyor.
1 parent 9a3567b commit e1cafea

File tree

2 files changed

+129
-0
lines changed

2 files changed

+129
-0
lines changed

.travis.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
branches:
2+
except:
3+
- /^v[0-9]/
4+
5+
os:
6+
- linux
7+
# - osx
8+
9+
language: cpp
10+
11+
compiler:
12+
- gcc
13+
- clang
14+
15+
matrix:
16+
allow_failures:
17+
- os: osx
18+
- compiler: clang
19+
20+
sudo: false
21+
22+
addons:
23+
apt:
24+
packages:
25+
- libboost-dev
26+
- libboost-date-time-dev
27+
- libboost-thread-dev
28+
- libjpeg8-dev
29+
- libopenexr-dev
30+
- libpng12-dev
31+
- libtiff4-dev
32+
- zlib1g-dev
33+
34+
install:
35+
- cd unix
36+
- ./prebuild.sh
37+
- cd ..
38+
- ./configure COMPILED_BY="Travis CI" --prefix="$(pwd)/build"
39+
- make check
40+
- make install
41+
42+
script:
43+
- true
44+
45+
notifications:
46+
email:
47+
recipients:
48+
- {NOTIFICATION_EMAIL}
49+
on_success: change
50+
on_failure: always

appveyor.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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

Comments
 (0)