summaryrefslogtreecommitdiffstats
path: root/appveyor.yml
diff options
context:
space:
mode:
authorSebastien Blaisot <sebastien@blaisot.org>2016-11-22 23:34:22 +0100
committerSebastien Blaisot <sebastien@blaisot.org>2016-11-23 01:26:25 +0100
commitb7323423fa11acde7c5b2909d6f8447774e18e79 (patch)
treeaf4d5fbc26899b3ee7629af91f454a3cc3529051 /appveyor.yml
parent45f86af4bb3b8555b9cb04008e1083cea1b73c97 (diff)
Add Appveyor configuration
/!\ Build env URL to be updated
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml60
1 files changed, 60 insertions, 0 deletions
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000000..885fdb735b
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,60 @@
+---
+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
+configuration:
+ - release
+# - debug
+environment:
+ matrix:
+ - platform: x64
+ bindir: dist64
+ - platform: x86
+ bindir: 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 http://url_to_appveyor_build_env/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
+ - curl -fsS -L -o install_buildenv.bat http://url_to_appveyor_build_env/install_buildenv.bat
+ - .\install_buildenv.bat %platform% %configuration%
+before_build:
+ - cd C:\projects\mixxx
+build_script:
+ - C:\mixxx-buildserver\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 %bindir%/mixxx-test.exe 2>&1"
+ - timeout 5 > NUL
+ - bash -c "stdbuf -oL -eL %bindir%/mixxx-test.exe --benchmark 2>&1"
+ - timeout 5 > NUL
+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 ***"