projectm/.appveyor.yml
mancoast 935ff26b12 Update .appveyor.yml
Visual Studio 2019
2019-10-31 22:22:16 -04:00

185 lines
6.8 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# AppVeyor build configuration
# https://www.appveyor.com/docs/build-configuration
# https://www.appveyor.com/docs/appveyor-yml/
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.1.0.0.7.{build}-{branch}
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2019
# Enable Windows RDP Client Access to Build Worker
init:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#---------------------------------#
# build configuration #
#---------------------------------#
# add several platforms to build matrix:
platform:
- x64
# - ARM
# - Win32
# add several configurations to build matrix:
configuration:
- Release
# - Debug
# - AnalysisRelease
matrix:
allow_failures:
- platform: ARM
- platform: Win32
- configuration: Debug
# scripts to run before build
before_build:
# packages from nuget
- nuget restore %APPVEYOR_BUILD_FOLDER%\msvc\projectM.sln
- nuget restore %APPVEYOR_BUILD_FOLDER%\src\EyeTune.WindowsUniversal.Application.sln
# use custom build_script
build_script:
- ECHO BUILD %CONFIGURATION% %PLATFORM%
- ps: msbuild $env:APPVEYOR_BUILD_FOLDER\msvc\projectM.sln /m /p:Configuration=$env:CONFIGURATION /p:Platform=$env:PLATFORM /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- ps: msbuild $env:APPVEYOR_BUILD_FOLDER\src\EyeTune.WindowsUniversal.Application.sln /m /p:Configuration=$env:CONFIGURATION /p:Platform=$env:PLATFORM /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:AppxPackage=false
# scripts to run after build
after_build:
# zip the bench archive
- tree /F %APPVEYOR_BUILD_FOLDER%\msvc
- 7z a projectM-sdl-%CONFIGURATION%-%PLATFORM%-%APPVEYOR_REPO_COMMIT%.zip %APPVEYOR_BUILD_FOLDER%\msvc\projectM-sdl
# zip the build archive
- tree /F build-win\%CONFIGURATION%\%PLATFORM%
- 7z a libprojectM-%CONFIGURATION%-%PLATFORM%-%APPVEYOR_REPO_COMMIT%.zip %APPVEYOR_BUILD_FOLDER%\msvc\libprojectM
#---------------------------------#
# tests configuration #
#---------------------------------#
# to disable automatic tests
test: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
#specify artifacts to upload
artifacts:
- path: projectM-sdl-%CONFIGURATION%-%PLATFORM%-%APPVEYOR_REPO_COMMIT%.zip
name: projectM-sdl-%CONFIGURATION%-%PLATFORM%
- path: libprojectM-%CONFIGURATION%-%PLATFORM%-%APPVEYOR_REPO_COMMIT%.zip
name: libprojectM-%CONFIGURATION%-%PLATFORM%
- path: msvc\Setup\%CONFIGURATION%\%PLATFORM%\*
name: projectM-Setup-%CONFIGURATION%-%PLATFORM%
#---------------------------------#
# deployment configuration #
#---------------------------------#
# to disable deployment
deploy: off
#---------------------------------#
# global handlers #
#---------------------------------#
# on successful build
on_success:
- ECHO "BUILD VICTORY"
# on build failure
on_failure:
- ECHO "TRY AND TRY AGAIN"
# after build failure or success
on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# https://www.appveyor.com/docs/environment-variables/
# Environment variables that are set by AppVeyor for every build:
# APPVEYOR - True if build runs in AppVeyor environment;
- ECHO %APPVEYOR%
# CI - True if build runs in AppVeyor environment;
- ECHO %CI%
# APPVEYOR_API_URL - AppVeyor Build Agent API URL;
- ECHO %APPVEYOR_API_URL%
# APPVEYOR_ACCOUNT_NAME - account name;
- ECHO %APPVEYOR_ACCOUNT_NAME%
# APPVEYOR_PROJECT_ID - AppVeyor unique project ID;
- ECHO %APPVEYOR_PROJECT_ID%
# APPVEYOR_PROJECT_NAME - project name;
- ECHO %APPVEYOR_PROJECT_NAME%
# APPVEYOR_PROJECT_SLUG - project slug (as seen in project details URL);
- ECHO %APPVEYOR_PROJECT_SLUG%
# APPVEYOR_BUILD_FOLDER - path to clone directory;
- ECHO %APPVEYOR_BUILD_FOLDER%
# APPVEYOR_BUILD_ID - AppVeyor unique build ID;
- ECHO %APPVEYOR_BUILD_ID%
# APPVEYOR_BUILD_NUMBER - build number;
- ECHO %APPVEYOR_BUILD_NUMBER%
# APPVEYOR_BUILD_VERSION - build version;
- ECHO %APPVEYOR_BUILD_VERSION%
# APPVEYOR_PULL_REQUEST_NUMBER - GitHub Pull Request number;
- ECHO %APPVEYOR_PULL_REQUEST_NUMBER%
# APPVEYOR_PULL_REQUEST_TITLE - GitHub Pull Request title
- ECHO %APPVEYOR_PULL_REQUEST_TITLE%
# APPVEYOR_JOB_ID - AppVeyor unique job ID;
- ECHO %APPVEYOR_JOB_ID%
# APPVEYOR_JOB_NAME - job name;
- ECHO %APPVEYOR_JOB_NAME%
# APPVEYOR_REPO_PROVIDER - github, bitbucket, kiln, vso or gitlab;
- ECHO %APPVEYOR_REPO_PROVIDER%
# APPVEYOR_REPO_SCM - git or mercurial;
- ECHO %APPVEYOR_REPO_SCM%
# APPVEYOR_REPO_NAME - repository name in format owner-name/repo-name;
- ECHO %APPVEYOR_REPO_NAME%
# APPVEYOR_REPO_BRANCH - build branch. For Pull Request commits it is base branch PR is merging into;
- ECHO %APPVEYOR_REPO_BRANCH%
# APPVEYOR_REPO_TAG - true if build has started by pushed tag; otherwise false;
- ECHO %APPVEYOR_REPO_TAG%
# APPVEYOR_REPO_TAG_NAME - contains tag name for builds started by tag; otherwise this variable is undefined;
- ECHO %APPVEYOR_REPO_TAG_NAME%
# APPVEYOR_REPO_COMMIT - commit ID (SHA);
- ECHO %APPVEYOR_REPO_COMMIT%
# APPVEYOR_REPO_COMMIT_AUTHOR - commit authors name;
- ECHO %APPVEYOR_REPO_COMMIT_AUTHOR%
# APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL - commit authors email address;
- ECHO %APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL%
# APPVEYOR_REPO_COMMIT_TIMESTAMP - commit date/time;
- ECHO %APPVEYOR_REPO_COMMIT_TIMESTAMP%
#
# commit message disabled; can cause false failure
#
# APPVEYOR_REPO_COMMIT_MESSAGE - commit message;
# - ECHO %APPVEYOR_REPO_COMMIT_MESSAGE%
# APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED - the rest of commit message after line break (if exists);
# - ECHO %APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED%
# APPVEYOR_SCHEDULED_BUILD - True if the build runs by scheduler;
- ECHO %APPVEYOR_SCHEDULED_BUILD%
# APPVEYOR_FORCED_BUILD (True or undefined) - builds started by “New build” button or from the same API;
- ECHO %APPVEYOR_FORCED_BUILD%
# APPVEYOR_RE_BUILD (True or undefined) - build started by “Re-build commit/PR” button of from the same API;
- ECHO %APPVEYOR_RE_BUILD%
# PLATFORM - platform name set on Build tab of project settings (or through platform parameter in appveyor.yml);
- ECHO %PLATFORM%
# CONFIGURATION - configuration name set on Build tab of project settings (or through configuration parameter in appveyor.yml);
- ECHO %CONFIGURATION%
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
- provider: Email
to:
- RobertPancoast77@gmail.com