diff options
author | Be <be@mixxx.org> | 2020-11-24 10:34:41 -0600 |
---|---|---|
committer | Be <be@mixxx.org> | 2020-11-24 10:34:41 -0600 |
commit | 257df84bf8c3a7fee9c40f31cb0f292768ebb393 (patch) | |
tree | 8061e2b19807c9bf742f5c62378d2890bba3e295 | |
parent | 623d099bcbabd02e8e853998deea273cd8bd08a4 (diff) |
remove AppVeyor
Builds are on GitHub Actions now.
-rw-r--r-- | appveyor.yml | 331 |
1 files changed, 0 insertions, 331 deletions
diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index acc815cfcb..0000000000 --- a/appveyor.yml +++ /dev/null @@ -1,331 +0,0 @@ ---- -version: '{branch}-{build}' -skip_tags: true -shallow_clone: true -max_jobs: 1 -image: - - Visual Studio 2017 - - Ubuntu2004 - -configuration: - - release-fastbuild - - release -# - debug - -platform: -# Disable x86 builds since we only get one concurrent build on AppVeyor and x86 -# failures will be caught by Jenkins. -# - x86 - - x64 - - -matrix: - exclude: - # Ubuntu doesn't support "release-fastbuild". - - image: Ubuntu2004 - configuration: release-fastbuild - # We only want "release-fastbuild" for Windows since "release" consumes too - # much memory due to link-time code generation / whole-program optimization. - - image: Visual Studio 2017 - configuration: release - -skip_commits: - files: - - doc/ - - .travis.yml - - LICENSE - - README - - README.md - - CHANGELOG - - COPYING - - CODE_OF_CONDUCT.md - -for: - -########## UBUNTU SPECIFIC CONFIGURATION ########## - -- - matrix: - only: - - image: Ubuntu2004 - - clone_folder: /home/appveyor/projects/mixxx - - cache: - - /home/appveyor/.ccache - - install: - - sudo apt update - - sudo apt -y install - ccache - cmake - libavcodec-dev - libavformat-dev - libavutil-dev - libchromaprint-dev - libebur128-dev - libfftw3-dev - libflac-dev - libid3tag0-dev - liblilv-dev - libmad0-dev - libmodplug-dev - libmp3lame-dev - libopus-dev - libopusfile-dev - libportmidi-dev - libprotobuf-dev - libqt5opengl5-dev - libqt5sql5-sqlite - libqt5svg5-dev - libqt5x11extras5-dev - librubberband-dev - libshout3-dev - libsndfile1-dev - libsoundtouch-dev - libsqlite3-dev - libswresample-dev - libtag1-dev - libupower-glib-dev - libusb-1.0-0-dev - libwavpack-dev - portaudio19-dev - protobuf-compiler - qt5-default - qtdeclarative5-dev - qt5keychain-dev - qtscript5-dev - xsltproc - - before_build: - # Limit cache size to 4 GB. - # AppVeyor allows 1 GB cache for the free plan but stores it compressed. - # Compression ratio is ~80%, so we could have ~10 GB uncompressed total cache. - # Split cache in half with Ubuntu ccache and underestimate compression ratio a little to - # avoid going over the limit. - - ccache -M 4G - - build_script: - - export CMAKE_BUILD_PARALLEL_LEVEL="$(nproc)" - - mkdir cmake_build - - cd cmake_build - # TODO: Set -DDEBUG_ASSERTIONS_FATAL=OFF before deploying CI builds as releases!!! - - cmake - -L - -DCMAKE_BUILD_TYPE=Release - -DWARNINGS_FATAL=ON - -DDEBUG_ASSERTIONS_FATAL=ON - -DBATTERY=ON - -DBROADCAST=ON - -DBULK=ON - -DFFMPEG=ON - -DHID=ON - -DLILV=ON - -DLOCALECOMPARE=ON - -DMAD=ON - -DMODPLUG=ON - -DOPUS=ON - -DQTKEYCHAIN=ON - -DVINYLCONTROL=ON - -DWAVPACK=ON - .. - - cmake --build . - - sudo cmake --build . --target install - - test_script: - - export CTEST_OUTPUT_ON_FAILURE=1 - - export QT_QPA_PLATFORM=offscreen - - ctest -T test --no-compress-output --timeout 45 - - cmake --build . --target benchmark - - after_test: - - xsltproc -o ctest-to-junit-results.xml ../cmake/ctest-to-junit.xsl Testing/*/Test.xml - - curl -F 'file=@ctest-to-junit-results.xml' "https://ci.appveyor.com/api/testresults/junit/$APPVEYOR_JOB_ID" - - ccache -s - -########## END UBUNTU SPECIFIC CONFIGURATION ########## - -########## WINDOWS SPECIFIC CONFIGURATION ########## - -- - matrix: - only: - - image: Visual Studio 2017 - fast_finish: false # set this flag to true to immediately finish build once one of the jobs fails. - - init: - - git config --global core.autocrlf input -# Uncomment the following line to show RDP info at beginning of job -# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) - - clone_folder: c:\projects\mixxx - - cache: - # The Windows build environment is bigger than the 1 GB cache AppVeyor gives us for free. - #- C:\mixxx-buildserver - - C:\Users\appveyor\clcache - - environment: - ENVIRONMENTS_URL: https://downloads.mixxx.org/builds/buildserver/2.3.x-windows/ - 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=<cmake\windows_build_environment_name - - set ENVIRONMENT_NAME=%%ENVIRONMENT_NAME:PLATFORM=%platform%%% - - set ENVIRONMENT_NAME=%%ENVIRONMENT_NAME:CONFIGURATION=%configuration%%% - - set WINLIB_PATH=%ENVIRONMENTS_PATH%\%ENVIRONMENT_NAME% - - IF EXIST %WINLIB_PATH% ( - echo Using cached environment %WINLIB_PATH%... - ) else ( - mkdir %ENVIRONMENTS_PATH% & - echo Downloading environment %ENVIRONMENT_NAME%... && - curl -fsS -L -o%ENVIRONMENTS_PATH%\%ENVIRONMENT_NAME%.zip %ENVIRONMENTS_URL%/%ENVIRONMENT_NAME%.zip && - echo Unpacking environment %ENVIRONMENT_NAME% to %ENVIRONMENTS_PATH%... && - 7z -o%ENVIRONMENTS_PATH% x %ENVIRONMENTS_PATH%\%ENVIRONMENT_NAME%.zip || exit 1 - ) - - 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 - - IF "%QT_PATH%" EQU "" ( - echo QT not found on %WINLIB_PATH% - ) - # Remove C:\Program Files\Git\usr\bin from the PATH - - set PATH=%PATH:C:\Program Files\Git\usr\bin;=% - - set CMAKE_BUILD_PARALLEL_LEVEL=%NUMBER_OF_CORES% - - call "%MSVC_PATH%\VC\Auxiliary\Build\vcvarsall.bat" x64 - - cd %APPVEYOR_BUILD_FOLDER% - # Limit cache size to 4 GB. - # AppVeyor allows 1 GB cache for the free plan but stores it compressed. - # Compression ratio is ~80%, so we could have ~10 GB uncompressed total cache. - # Split cache in half with Ubuntu ccache and underestimate compression ratio a little to - # avoid going over the limit. - - clcache -M 4294967296 - # Improve clcache performance - - set CLCACHE_SERVER=1 - - set CLCACHE_HARDLINK=1 - - IF [%APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH%] == [] ( - set "MIXXX_PACKAGE_NAME=mixxx-%APPVEYOR_REPO_BRANCH:/=-%-%APPVEYOR_REPO_COMMIT%" - ) else ( - set "MIXXX_PACKAGE_NAME=mixxx-pr-%APPVEYOR_PULL_REQUEST_NUMBER%-%APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH:/=-%-%APPVEYOR_REPO_COMMIT%" - ) - - ps: Start-Process clcache-server - - build_script: - - mkdir cmake_build - - cd cmake_build - # TODO: Set -DDEBUG_ASSERTIONS_FATAL=OFF before deploying CI builds as releases!!! - - cmake - -L - -DCPACK_PACKAGE_FILE_NAME=%MIXXX_PACKAGE_NAME% - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_INSTALL_PREFIX=C:\mixxx - -DCMAKE_PREFIX_PATH=%WINLIB_PATH%;%QT_PATH% - -DDEBUG_ASSERTIONS_FATAL=ON - -DBATTERY=ON - -DBROADCAST=ON - -DBULK=ON - -DHID=ON - -DHSS1394=ON - -DKEYFINDER=OFF - -DLOCALECOMPARE=ON - -DMAD=ON - -DMEDIAFOUNDATION=ON - -DOPUS=ON - -DQTKEYCHAIN=ON - -DVINYLCONTROL=ON - -DSTATIC_DEPS=ON - -G "Ninja" - .. - - 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" - # copy package so one file gets deployed with a uniquely identifying name - # and one with a name we can link to from the website - - If [%APPVEYOR_PULL_REQUEST_NUMBER%] == [] - If "%APPVEYOR_ACCOUNT_NAME%" == "mixxxdj" ( - signtool sign /f ..\%CODESIGN_CERTIFICATE_PATH% /p %CODESIGN_CERTIFICATE_PASSWORD% %MIXXX_PACKAGE_NAME%.msi - && copy %MIXXX_PACKAGE_NAME%.msi mixxx-%APPVEYOR_REPO_BRANCH%-latest.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 --timeout 45 - - cmake --build . --target benchmark - - after_test: - # Found at https://help.appveyor.com/discussions/suggestions/5298-support-ctest-xml-test-results - - ps: | - $ctest_xml = Get-ChildItem -Path Testing\*\Test.xml - $ctest_to_junit_xsl = Get-ChildItem -Path ..\cmake\ctest-to-junit.xsl - $XSLInputElement = New-Object System.Xml.Xsl.XslCompiledTransform - $XSLInputElement.Load($ctest_to_junit_xsl) - $XSLInputElement.Transform((Resolve-Path $ctest_xml), (Join-Path (Resolve-Path .) "ctest-to-junit-results.xml")) - $wc = New-Object 'System.Net.WebClient' - $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\ctest-to-junit-results.xml)) - - clcache -s - - artifacts: - - path: 'cmake_build/*.msi' - - on_finish: - # Uncomment the following line if you don't want the build VM to be destroyed - # and be able to RDP on it until a special “lock” file on VM desktop is deleted - # The RDP session is limited by overall build time (60 min). - # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) - -########## END WINDOWS SPECIFIC CONFIGURATION ########## - - -on_success: - - echo "*** SUCCESS ***" - -on_failure: - - echo "*** FAILURE ***" - -on_finish: - - echo "*** DONE ***" - -deploy: - - provider: Environment - name: downloads.mixxx.org - -notifications: - - provider: Webhook - url: https://mixxx.zulipchat.com/api/v1/messages - method: POST - content_type: application/x-www-form-urlencoded - headers: - Authorization: - secure: 95cbVBcC4rogjE5VNdhuYm8cnjPF8+7SeQXySqcxAqrFZxK+/Kcn3Q2hRb2iZfUEKZ+EdCYwx7EbpZdSiZc5goAuJT+/QXXT/Ls+fzc+eSy4Sz1Ic5t2BjLhmYZLdnBL3uIVceNSb8GzYPQx0+xy7g== - on_build_status_changed: true - 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}}" |