2017-12-21 18:39:12 +01:00
|
|
|
# clone directory
|
|
|
|
clone_folder: C:\MuseScore
|
|
|
|
|
|
|
|
# set clone depth
|
2019-07-09 12:22:59 +02:00
|
|
|
clone_depth: 50 # clone entire repository history if not defined
|
2017-12-21 18:39:12 +01:00
|
|
|
|
2018-07-10 14:57:05 +02:00
|
|
|
image: Visual Studio 2017
|
|
|
|
|
2018-09-25 11:24:37 +02:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2017-12-21 18:39:12 +01:00
|
|
|
# build cache to preserve files/folders between builds
|
|
|
|
cache:
|
|
|
|
- dependencies.7z
|
2019-09-17 11:25:44 +02:00
|
|
|
- qt5125_msvc2017_64.7z # if not using AppVeyor's built-in Qt in before_build.bat
|
|
|
|
- qt5125_msvc2017_32.7z # if not using AppVeyor's built-in Qt in before_build.bat
|
2017-12-21 18:39:12 +01:00
|
|
|
- C:\Program Files (x86)\Jack
|
|
|
|
- C:\MuseScore\build.release\thirdparty
|
|
|
|
- C:\ccache
|
|
|
|
|
|
|
|
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
|
|
|
|
platform:
|
2019-02-18 12:32:25 +01:00
|
|
|
#use for releases only
|
|
|
|
# - x86
|
2019-02-13 14:34:07 +01:00
|
|
|
- x64
|
2017-12-21 18:39:12 +01:00
|
|
|
|
|
|
|
#environment:
|
|
|
|
|
|
|
|
# build Configuration, i.e. Debug, Release, etc.
|
|
|
|
configuration: Release
|
|
|
|
|
2018-01-05 10:44:00 +01:00
|
|
|
# Stop Appveyor from "Discovering Tests"
|
|
|
|
test: off
|
|
|
|
|
2019-02-13 14:34:07 +01:00
|
|
|
matrix:
|
|
|
|
fast_finish: true # stop all jobs if any job fails
|
|
|
|
#allow_failures: # list jobs allowed to fail without stopping the rest
|
|
|
|
|
2017-12-21 18:39:12 +01:00
|
|
|
install:
|
2019-02-21 10:27:00 +01:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
- git submodule update --init --recursive
|
2018-01-02 09:56:13 +01:00
|
|
|
- IF DEFINED ENCRYPT_SECRET_SSH (
|
2017-12-28 22:20:48 +01:00
|
|
|
nuget install secure-file -ExcludeVersion &&
|
|
|
|
secure-file\tools\secure-file -decrypt C:\MuseScore\build\appveyor\resources\osuosl_nighlies_rsa_nopp.enc -secret %ENCRYPT_SECRET_SSH%
|
|
|
|
)
|
2018-03-13 17:04:37 +01:00
|
|
|
- IF DEFINED ENCRYPT_SECRET_CERTIFICATE (
|
|
|
|
nuget install secure-file -ExcludeVersion &&
|
|
|
|
secure-file\tools\secure-file -decrypt C:\MuseScore\build\appveyor\resources\musescore.p12.enc -secret %ENCRYPT_SECRET_CERTIFICATE%
|
|
|
|
)
|
2017-12-21 18:39:12 +01:00
|
|
|
|
|
|
|
# scripts to run before build
|
|
|
|
before_build:
|
2018-03-13 17:04:37 +01:00
|
|
|
- cmd: C:\MuseScore\build\appveyor\before_build.bat
|
2017-12-21 18:39:12 +01:00
|
|
|
|
2018-03-13 17:04:37 +01:00
|
|
|
build_script:
|
|
|
|
- cmd: C:\MuseScore\build\appveyor\build_script.bat
|
2017-12-21 18:39:12 +01:00
|
|
|
|
|
|
|
after_build:
|
2018-03-13 17:04:37 +01:00
|
|
|
- cmd: C:\MuseScore\build\appveyor\after_build.bat
|
2017-12-28 22:20:48 +01:00
|
|
|
|
2019-03-06 11:20:58 +01:00
|
|
|
on_success:
|
|
|
|
- ps: |
|
|
|
|
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null -or ($env:APPVEYOR_PULL_REQUEST_NUMBER -ne $null -and $env:APPVEYOR_REPO_COMMIT_MESSAGE -like "*collect_artifacts*"))
|
|
|
|
{
|
|
|
|
Push-AppveyorArtifact $env:ARTIFACT_NAME -deploymentname musescore-binary
|
|
|
|
Push-AppveyorArtifact $env:DEBUG_SYMS_FILE -deploymentname musescore-dbg-info.sym
|
|
|
|
Push-AppveyorArtifact update_win_nightly.xml
|
|
|
|
Push-AppveyorArtifact appcast.xml
|
|
|
|
}
|
2018-10-27 08:13:15 +02:00
|
|
|
|
|
|
|
# uncomment in stable release
|
|
|
|
# - provider: S3
|
|
|
|
# access_key_id:
|
|
|
|
# secure: k68f3wMKIC5AzrfNMuC4kdPaxzvKdFVkRsietUKqc+E=
|
|
|
|
# secret_access_key:
|
|
|
|
# secure: IbpdpiHzGfMasaSA6uGrskE4xu9wE+HzElW7tIDOUww+ivHj+gN+mPgUHKCcV9Cn
|
|
|
|
# bucket: sparkle.musescore.org
|
|
|
|
# folder: testing/3/win/
|
|
|
|
# region: us-east-1
|
|
|
|
# set_public: true
|
|
|
|
# artifact: appcast.xml
|