--- version: '{branch}-{build}' skip_tags: true max_jobs: 1 image: Visual Studio 2013 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 skip_commits: files: - doc/ - LICENCE - README - README.md - COPYING - CODE_OF_CONDUCT.md configuration: - release # - debug environment: matrix: - platform: x64 distdir: dist64 - platform: x86 distdir: dist32 matrix: fast_finish: false # set this flag to true to immediately finish build once one of the jobs fails. cache: - C:\mixxx-buildserver install: - cd %TEMP% - echo *** Downloading and installing scons # SF.net download currently broken from EC2 to some mirrors, so hosting scons myself # - curl -fsS -L -o scons-2.5.1.zip http://prdownloads.sourceforge.net/scons/scons-2.5.1.zip - curl -fsS -L -o scons-2.5.1.zip https://downloads.mixxx.org/builds/appveyor/environments/2.0/scons-2.5.1.zip - 7z x scons-2.5.1.zip - cd scons-2.5.1 - python setup.py install - echo *** Downloading precompiled build environment if not in build-cache - cd %APPVEYOR_BUILD_FOLDER% - build\appveyor\install_buildenv.bat %platform% %configuration% before_build: - cd %APPVEYOR_BUILD_FOLDER% build_script: - build\appveyor\build_mixxx.bat %platform% %configuration% test_script: - echo *** Testing # Calling mixxx-test under bash to have standard output # and use stdbuf to unbuffer standard & error output - bash -c "stdbuf -oL -eL %distdir%/mixxx-test.exe --gtest_output=xml:test_results.xml 2>&1" - timeout 5 > NUL - bash -c "stdbuf -oL -eL %distdir%/mixxx-test.exe --benchmark 2>&1" - timeout 5 > NUL after_test: - ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test_results.xml)) artifacts: - path: '*.exe' - path: '*.msi' on_success: - echo "*** SUCCESS ***" on_failure: - echo "*** FAILURE ***" 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')) - echo "*** DONE ***" deploy: - provider: Environment name: downloads.mixxx.org