.appveyor.yml 2.89 KB
Newer Older
Jack Andersen's avatar
Jack Andersen committed
1 2 3 4 5 6
############################################################################
# URDE appveyor build configuration
############################################################################
clone_depth: 1

os:
7
  - Visual Studio 2017
Jack Andersen's avatar
Jack Andersen committed
8 9 10 11

build:
  verbosity: detailed

12 13 14 15
branches:
  only:
    - master

Jack Andersen's avatar
Jack Andersen committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
configuration:
  - Debug

install:
  ############################################################################
  # All external dependencies are installed in C:\projects\deps
  ############################################################################
  - mkdir C:\projects\deps
  - cd C:\projects\deps

  ############################################################################
  # Install Ninja
  ############################################################################
  - set NINJA_URL="https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip"
  - appveyor DownloadFile %NINJA_URL% -FileName ninja.zip
  - 7z x ninja.zip -oC:\projects\deps\ninja > nul
  - set PATH=C:\projects\deps\ninja;%PATH%
  - ninja --version

  ############################################################################
  # Install a recent CMake
  ############################################################################
Jack Andersen's avatar
Jack Andersen committed
38
  - set CMAKE_URL="https://cmake.org/files/v3.10/cmake-3.10.1-win64-x64.zip"
Jack Andersen's avatar
Jack Andersen committed
39 40 41
  - appveyor DownloadFile %CMAKE_URL% -FileName cmake.zip
  - 7z x cmake.zip -oC:\projects\deps\cmake > nul
  - set PATH=C:\projects\deps\cmake\bin;%PATH%
Jack Andersen's avatar
Jack Andersen committed
42
  - C:\projects\deps\cmake\cmake-3.10.1-win64-x64\bin\cmake.exe --version
Jack Andersen's avatar
Jack Andersen committed
43 44 45 46
  
  ############################################################################
  # Install custom LLVM
  ############################################################################
Jack Andersen's avatar
Jack Andersen committed
47
  - set LLVM_URL="https://axiodl.com/LLVM-6.0.0svn-win64.exe"
Jack Andersen's avatar
Jack Andersen committed
48 49 50 51 52 53
  - appveyor DownloadFile %LLVM_URL% -FileName llvm.exe
  - llvm.exe /S /D=C:\projects\deps\llvm
  - set PATH=C:\projects\deps\llvm\bin;%PATH%
  - llvm-config --version
  
before_build:
54
  - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
Jack Andersen's avatar
Jack Andersen committed
55 56 57 58 59 60
  - cd C:\projects\urde
  - git submodule update --init --recursive

build_script:
  - mkdir build
  - cd build
Jack Andersen's avatar
Jack Andersen committed
61
  - C:\projects\deps\cmake\cmake-3.10.1-win64-x64\bin\cmake.exe -GNinja ..
Jack Andersen's avatar
Jack Andersen committed
62 63
  - ninja
  
64 65 66 67 68 69 70 71 72 73
#notifications:
#  - provider: Slack
#    incoming_webhook:
#      secure: uoO0I0PWyCx0KLjBOG6d17aSVuEEvYztB/UiF8J0LmTb2O735mAdWcuZHTImDFUGZxeI34/qzOB2JKqF+h8dZA5yiprSTkWIookqQjUokAM=
#  - provider: Webhook
#    url: https://skyhook.glitch.me/api/webhooks/345359672326356993/M8kBYpqr1JyVNhnAHBwNN5TnZmtWy9_msxAQoeOlaa73UhPn8gLU5uYZCjU1qsAi3sGN/appveyor
#    method: POST
#    on_build_success: true
#    on_build_failure: true
#    on_build_status_changed: false
Jack Andersen's avatar
Jack Andersen committed
74 75
  
# Uncomment this to debug AppVeyor failures.
Phillip Stephens's avatar
Phillip Stephens committed
76 77
#on_finish:
#  - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))