diff options
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/appveyor.yml b/appveyor.yml index d3fa44469d..e1ff3bc62a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -133,7 +133,7 @@ for: test_script: - export CTEST_OUTPUT_ON_FAILURE=1 - export QT_QPA_PLATFORM=offscreen - - ctest -T test --no-compress-output + - ctest -T test --no-compress-output --timeout 45 - cmake --build . --target benchmark after_test: @@ -166,7 +166,13 @@ for: ENVIRONMENTS_PATH: C:\mixxx-buildserver MSVC_PATH: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community" PATH: 'C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%' - + CODESIGN_CERTIFICATE_PATH: build\certificates\windows_sectigo_codesign_certificate.pfx + CODESIGN_CERTIFICATE_SECURE_FILE_SECRET: + secure: 1xzNVbLop/5/ySSgZxPzyOz5cm8nVMLEIEW4x0XOJjI= + CODESIGN_CERTIFICATE_SECURE_FILE_SALT: + secure: tw+bg3qfia7+WQdBdXtC301Z9Dv7yQ6SwpWcFJav9YC4zwyyGztev6pAbGE93sln4VO0WRCJ+4/KTviBMPXvXQ== + CODESIGN_CERTIFICATE_PASSWORD: + secure: EiAsLAgrsS+N3rr71AAkXPCrxIe2vLvlOvCipnTw6pg= install: - set /P ENVIRONMENT_NAME=<build/windows/golden_environment @@ -184,6 +190,14 @@ for: ) - choco install ninja - python -m pip install git+https://github.com/frerich/clcache.git + # Decrypt the code signing certificate. + - ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1')) + - If [%APPVEYOR_PULL_REQUEST_NUMBER%] == [] + If "%APPVEYOR_ACCOUNT_NAME%" == "mixxxdj" ( + appveyor-tools\secure-file -decrypt %CODESIGN_CERTIFICATE_PATH%.enc -secret %CODESIGN_CERTIFICATE_SECURE_FILE_SECRET% -salt %CODESIGN_CERTIFICATE_SECURE_FILE_SALT% + ) else ( + echo "Skipping certificate decryption because we are in a pull request or not on the mixxxdj account." + ) before_build: - FOR /D %%G IN (%WINLIB_PATH%\Qt-*) DO SET QT_PATH=%%G @@ -237,14 +251,26 @@ for: .. - cmake --build . - cmake --build . --target install + - If [%APPVEYOR_PULL_REQUEST_NUMBER%] == [] + If "%APPVEYOR_ACCOUNT_NAME%" == "mixxxdj" ( + signtool sign /f ..\%CODESIGN_CERTIFICATE_PATH% /p %CODESIGN_CERTIFICATE_PASSWORD% *.exe + ) else ( + echo "Skipping certificate decryption because we are in a pull request or not on the mixxxdj account." + ) # Generate WIX installer - cpack -G "WIX" + - If [%APPVEYOR_PULL_REQUEST_NUMBER%] == [] + If "%APPVEYOR_ACCOUNT_NAME%" == "mixxxdj" ( + signtool sign /f ..\%CODESIGN_CERTIFICATE_PATH% /p %CODESIGN_CERTIFICATE_PASSWORD% *.msi + ) else ( + echo "Skipping certificate decryption because we are in a pull request or not on the mixxxdj account." + ) test_script: # Calling mixxx-test under bash to have standard output and use stdbuf to # unbuffer standard & error output - set CTEST_OUTPUT_ON_FAILURE=1 - - ctest -C "Release" -T test --no-compress-output + - ctest -C "Release" -T test --no-compress-output --timeout 45 - cmake --build . --target benchmark after_test: @@ -294,4 +320,4 @@ notifications: Authorization: secure: 95cbVBcC4rogjE5VNdhuYm8cnjPF8+7SeQXySqcxAqrFZxK+/Kcn3Q2hRb2iZfUEKZ+EdCYwx7EbpZdSiZc5goAuJT+/QXXT/Ls+fzc+eSy4Sz1Ic5t2BjLhmYZLdnBL3uIVceNSb8GzYPQx0+xy7g== on_build_status_changed: true - body: "type=stream&to=appveyor&subject={{projectName}} Build {{buildVersion}} {{status}}&content=Build {{buildVersion}} {{status}}{{#isPullRequest}} (PR #{{pullRequestId}}) {{/isPullRequest}}{{#failed}} :cross_mark:{{/failed}}{{#passed}} :check_mark:{{/passed}} {{buildUrl}}" + body: "type=stream&to=appveyor&subject={{^isPullRequest}}{{branch}}&content={{#failed}}:cross_mark:{{/failed}}{{#passed}}:check_mark:{{/passed}} {{status}} {{buildUrl}}\n{{commitId}} {{commitAuthor}}\n{{commitMessage}}\n{{commitMessageExtended}}{{/isPullRequest}}" |