2017-10-18 05:31:55 +02:00
# Appveyor configuration file for bash build of packs
2017-10-22 07:31:24 +02:00
version : 2 -{build}
2017-10-18 05:31:55 +02:00
environment :
2017-10-20 22:16:20 +02:00
# It's prefered to have the GithubAuthToken (encrypted) set in the UI. Follow this guide for the instructions https://www.appveyor.com/docs/deployment/github/#provider-settings.
2017-10-21 12:10:46 +02:00
CommitTimestamp : 0
2017-10-22 07:31:24 +02:00
CommitDescription : 'No description was added to this commit.'
2017-10-18 05:31:55 +02:00
CYG_MIRROR : http://cygwin.mirror.constant.com
CYG_PACKAGES : bash,php,dos2unix
matrix :
- BUILD_TYPE : 64bit
CYG_ROOT : C:\mycygwin64
CYG_CACHE : C:\mycygwin64\var\cache\setup
CYG_SETUP : setup-x86_64.exe
BASH : C:\mycygwin64\bin\bash
# - BUILD_TYPE: 32bit
# CYG_ROOT: C:\mycygwin
# CYG_CACHE: C:\mycygwin\var\cache\setup
# CYG_SETUP: setup-x86.exe
# BASH: C:\mycygwin\bin\bash
# Cache Cygwin files to speed up build
cache :
- '%CYG_SETUP%'
- '%CYG_CACHE%'
clone_depth : 1
# We want to convert line endings to CRLF because thats what the txt files in the zip should end up as
init :
- git config --global core.autocrlf true
# Use appveyor http proxy
- ps : iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-http-proxy.ps1'))
# Allows RDP
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Install needed build dependencies
2017-09-24 00:48:24 +02:00
install :
2017-10-21 12:10:46 +02:00
- if defined appveyor_repo_commit_message_extended (set CommitDescription=%appveyor_repo_commit_message_extended%) # If there's is a description set it to that, otherwise leave it.
- ps : $env:CommitTimestamp=[System.DateTime]::UtcNow # Readable timestamp
2017-10-18 05:31:55 +02:00
- ps : if (Test-Path Env:\CYG_ROOT) { Start-FileDownload "http://cygwin.com/$env:CYG_SETUP" -FileName "cygsetup.exe" -Timeout 30000 }
- ps : if ((Get-Content "cygsetup.exe") -eq $Null) { Copy-Item "$env:CYG_SETUP" -Destination "cygsetup.exe" -Force } else { Copy-Item "cygsetup.exe" -Destination "$env:CYG_SETUP" -Force }
2017-10-19 23:22:18 +02:00
# Quiet-mode isn't really working but this does work.
- if defined CYG_ROOT ((%CYG_SETUP% --quiet-mode --no-shortcuts --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_CACHE%" --packages "%CYG_PACKAGES%" --upgrade-also) > $null)
2017-10-18 05:31:55 +02:00
build_script :
- if defined BASH (%BASH% -lc "cd $(cygpath ${APPVEYOR_BUILD_FOLDER}) && dos2unix build.sh && sh build.sh")
2017-10-19 17:21:53 +02:00
- xcopy %APPVEYOR_BUILD_FOLDER%\Enhancement %APPVEYOR_BUILD_FOLDER%\AppVeyor /E /I /Q
- xcopy %APPVEYOR_BUILD_FOLDER%\Enthusiast %APPVEYOR_BUILD_FOLDER%\AppVeyor /E /I /Q
- xcopy %APPVEYOR_BUILD_FOLDER%\Modifications %APPVEYOR_BUILD_FOLDER%\AppVeyor /E /I /Q
- xcopy %APPVEYOR_BUILD_FOLDER%\Performance %APPVEYOR_BUILD_FOLDER%\AppVeyor /E /I /Q
- xcopy %APPVEYOR_BUILD_FOLDER%\Quality %APPVEYOR_BUILD_FOLDER%\AppVeyor /E /I /Q
- xcopy %APPVEYOR_BUILD_FOLDER%\Workaround %APPVEYOR_BUILD_FOLDER%\AppVeyor /E /I /Q
2017-10-18 05:31:55 +02:00
# waits for RDP confirmation before finishing
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
2017-09-24 00:48:24 +02:00
artifacts :
2017-10-18 05:31:55 +02:00
- path : AppVeyor
2017-10-21 07:58:49 +02:00
# name: 'graphicPacks_$(appveyor_build_version)'
name : 'graphicPacks'
2017-10-19 17:21:53 +02:00
type : zip
2017-10-20 09:33:16 +02:00
deploy :
2017-10-21 04:23:37 +02:00
tag : "AppVeyor"
2017-10-22 07:31:24 +02:00
# Tag needs to be the same otherwise it won't overwrite.
release : "Graphic Packs: version $(appveyor_build_version)"
2017-10-22 07:36:49 +02:00
description : "Updated to **v$(appveyor_build_version)** at $(CommitTimestamp) (UTC)\n\n### Changelog:\n**$(appveyor_repo_commit_message)** - Commit $(appveyor_repo_commit) by $(appveyor_repo_commit_author):\n```\n$(CommitDescription)\n```\n#### [Installation instructions](https://$(appveyor_account_name).github.io/$(appveyor_project_name)/) - [Previous versions](https://ci.appveyor.com/project/$(appveyor_account_name)/cemu-graphic-packs/history)"
2017-10-20 09:33:16 +02:00
provider : GitHub
# Auth token is generated by using https://www.appveyor.com/docs/deployment/github/#provider-settings
2017-10-20 22:16:20 +02:00
auth_token : $(GithubAuthToken)
2017-10-20 09:33:16 +02:00
prerelease : false
# Makes it so that it overwrites the previous files.
force_update : true
artifact : /.*\.zip/
on :
branch : master