2018-07-12 21:45:50 +00:00
|
|
|
version: '{build}'
|
2016-04-19 12:19:00 +00:00
|
|
|
clone_depth: 1
|
2015-03-29 05:15:41 +00:00
|
|
|
before_build:
|
2015-09-13 11:19:15 +00:00
|
|
|
- git submodule update --init
|
2016-04-19 12:19:00 +00:00
|
|
|
- set tag=x%APPVEYOR_REPO_TAG_NAME%
|
2016-05-17 14:53:36 +00:00
|
|
|
- if %tag:~,2% == xv (set BUILD_TYPE=RelWithDebInfo) else (set BUILD_TYPE=Debug)
|
2018-07-12 21:45:50 +00:00
|
|
|
- mkdir build
|
|
|
|
- cmake -G"Visual Studio 12" -Tv120 -Bbuild -H.
|
2016-04-19 12:19:00 +00:00
|
|
|
build_script:
|
2018-07-12 21:45:50 +00:00
|
|
|
- msbuild "build\src\solvespace.vcxproj" /verbosity:minimal /property:Configuration=%BUILD_TYPE% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
|
|
- msbuild "build\src\solvespace-cli.vcxproj" /verbosity:minimal /property:Configuration=%BUILD_TYPE% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
|
|
- msbuild "build\test\solvespace-testsuite.vcxproj" /verbosity:minimal /property:Configuration=%BUILD_TYPE% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
2016-07-25 19:37:48 +00:00
|
|
|
test_script:
|
2018-07-12 21:45:50 +00:00
|
|
|
- build\bin\%BUILD_TYPE%\solvespace-testsuite.exe
|
2015-09-13 11:19:15 +00:00
|
|
|
artifacts:
|
Use the same code for loading resources in all executables.
All of our executables need resources; e.g. the vector font is
a resource and it is necessary for generation. Before this commit,
the GUI executable loaded the resources in a nice way, and everything
else did it in a very ad-hoc, fragile way.
After this commit, all executables are placed in <build>/bin and
follow the same algorithm:
* On Windows, resources are compiled and linked into every
executable.
* On Linux, resources are copied into <build>/res (which is
tried first) and <prefix>/share/solvespace (which is tried
second).
* On macOS, resources are copied into <build>/res (which is
tried first) and <build>/bin/solvespace.app/Contents/Resources
(which is tried second).
In practice this means that we can add as many executables as we want
without duplicating lots of code. In addition, on macOS, we can
place supplementary executables into the bundle, and they can use
resources from the bundle transparently.
2016-11-28 04:16:18 +00:00
|
|
|
- path: build\bin\%BUILD_TYPE%\solvespace.exe
|
2015-09-13 11:19:15 +00:00
|
|
|
name: solvespace.exe
|
2016-11-29 02:57:41 +00:00
|
|
|
- path: build\bin\%BUILD_TYPE%\solvespace-cli.exe
|
|
|
|
name: solvespace-cli.exe
|
Use the same code for loading resources in all executables.
All of our executables need resources; e.g. the vector font is
a resource and it is necessary for generation. Before this commit,
the GUI executable loaded the resources in a nice way, and everything
else did it in a very ad-hoc, fragile way.
After this commit, all executables are placed in <build>/bin and
follow the same algorithm:
* On Windows, resources are compiled and linked into every
executable.
* On Linux, resources are copied into <build>/res (which is
tried first) and <prefix>/share/solvespace (which is tried
second).
* On macOS, resources are copied into <build>/res (which is
tried first) and <build>/bin/solvespace.app/Contents/Resources
(which is tried second).
In practice this means that we can add as many executables as we want
without duplicating lots of code. In addition, on macOS, we can
place supplementary executables into the bundle, and they can use
resources from the bundle transparently.
2016-11-28 04:16:18 +00:00
|
|
|
- path: build\bin\%BUILD_TYPE%\solvespace.pdb
|
2015-09-13 11:19:15 +00:00
|
|
|
name: solvespace.pdb
|
|
|
|
deploy:
|
2016-04-19 16:57:28 +00:00
|
|
|
- provider: GitHub
|
|
|
|
auth_token:
|
|
|
|
secure: P9/pf2nM+jlWKe7pCjMp41HycBNP/+5AsmE/TETrDUoBOa/9WFHelqdVFrbRn9IC
|
|
|
|
description: ""
|
2016-11-29 02:57:41 +00:00
|
|
|
artifact: solvespace.exe,solvespace-cli.exe,solvespace.pdb
|
2015-09-13 11:19:15 +00:00
|
|
|
on:
|
|
|
|
appveyor_repo_tag: true
|
2018-07-12 21:45:50 +00:00
|
|
|
on_success:
|
|
|
|
- 'python .appveyor/irc-notify.py #solvespace {repo_name}#{build_version} ({branch} - {short_commit} : {author}): {color_green}The build passed.,Change view : {commit_url},Build details : {build_url}'
|
|
|
|
on_failure:
|
|
|
|
- 'python .appveyor/irc-notify.py #solvespace {repo_name}#{build_version} ({branch} - {short_commit} : {author}): {color_red}The build failed.,Change view : {commit_url},Build details : {build_url}'
|