appveyor.yml 2.78 KB
Newer Older
1 2
version: "{build}"

3 4
branches:
    only:
5 6
        - master
        - /openmw-.*$/
7 8
        - appveyor

9 10
environment:
    matrix:
11 12
        - msvc: 2015
          APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
13
        - msvc: 2017
14
          APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
Bret Curtis's avatar
Bret Curtis committed
15 16
matrix:
    allow_failures:
17
        - msvc: 2015
18

19
platform:
20 21
#   - Win32
    - x64
22

23
configuration:
Andrei Kortunov's avatar
Andrei Kortunov committed
24
#    - Debug
25 26
    - Release
#    - RelWithDebInfo
27

28
# For the Qt, Boost, CMake, etc installs
29
#os: Visual Studio 2017
30

31 32
# We want the git revision for versioning,
# so shallow clones don't work.
33
clone_depth: 1
34

Alexander Olofsson's avatar
Alexander Olofsson committed
35
cache:
36 37 38 39 40 41 42 43 44 45 46 47
    - C:\projects\openmw\deps\Bullet-2.86-msvc2015-win32.7z
    - C:\projects\openmw\deps\Bullet-2.86-msvc2015-win64.7z
    - C:\projects\openmw\deps\MyGUI-3.2.2-msvc2015-win32.7z
    - C:\projects\openmw\deps\MyGUI-3.2.2-msvc2015-win64.7z
    - C:\projects\openmw\deps\OSG-3.4.1-scrawl-msvc2015-win32.7z
    - C:\projects\openmw\deps\OSG-3.4.1-scrawl-msvc2015-win64.7z
    - C:\projects\openmw\deps\ffmpeg-3.2.4-dev-win32.zip
    - C:\projects\openmw\deps\ffmpeg-3.2.4-dev-win64.zip
    - C:\projects\openmw\deps\ffmpeg-3.2.4-win32.zip
    - C:\projects\openmw\deps\ffmpeg-3.2.4-win64.zip
    - C:\projects\openmw\deps\OpenAL-Soft-1.19.1.zip
    - C:\projects\openmw\deps\SDL2-2.0.7.zip
Alexander Olofsson's avatar
Alexander Olofsson committed
48

49 50
clone_folder: C:\projects\openmw

51 52 53
install:
    - set PATH=C:\Program Files\Git\mingw64\bin;%PATH%

54
before_build:
55
    - cmd: git submodule update --init --recursive
56
    - cmd: sh %APPVEYOR_BUILD_FOLDER%\CI\before_script.msvc.sh -c %configuration% -p %PLATFORM% -v %msvc% -V
57 58

build_script:
59 60
    - cmd: if %PLATFORM%==Win32 set build=MSVC%msvc%_32
    - cmd: if %PLATFORM%==x64 set build=MSVC%msvc%_64
61
    - cmd: msbuild %build%\OpenMW.sln /t:Build /p:Configuration=%configuration% /m:2 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
62

63
after_build:
64 65
    - cmd: if %PLATFORM%==x64 7z a OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%.zip %APPVEYOR_BUILD_FOLDER%\MSVC%msvc%_64\%configuration%\ -xr"!*.pdb"
    #- cmd: if %PLATFORM%==x64 7z a OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%_pdb.zip %APPVEYOR_BUILD_FOLDER%\MSVC%msvc%_64\%configuration%\*.pdb
66

67
test: off
68 69 70 71

#notifications:
#    - provider: Email
#    to:
72
#        -
73 74
#    on_build_failure: true
#    on_build_status_changed: true
75 76

artifacts:
77 78 79 80
  - path: OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%.zip
    name: OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%
  #- path: OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%_pdb.zip
  #  name: OpenMW_MSVC%msvc%_%platform%_%appveyor_pull_request_number%_%appveyor_pull_request_head_commit%_pdb