2017-08-10 09:16:43 +00:00
|
|
|
# NOTE: settings in this file have precedence over settings on the website
|
2020-05-02 22:56:38 +00:00
|
|
|
image:
|
|
|
|
- Visual Studio 2013
|
|
|
|
- Visual Studio 2019
|
2017-04-25 20:32:40 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2020-05-02 13:05:45 +00:00
|
|
|
exclude:
|
|
|
|
- platform: x64
|
|
|
|
TOOLCHAIN_VERSION: 10.0
|
2020-05-02 22:56:38 +00:00
|
|
|
- platform: Win32
|
|
|
|
TOOLCHAIN_VERSION: 10.0
|
|
|
|
image: Visual Studio 2019
|
|
|
|
- TOOLCHAIN_VERSION: 12.0
|
|
|
|
image: Visual Studio 2019
|
|
|
|
- platform: Win32
|
|
|
|
TOOLCHAIN_VERSION: 16.0
|
|
|
|
- platform: x64
|
|
|
|
TOOLCHAIN_VERSION: 16.0
|
|
|
|
image: Visual Studio 2013
|
2017-04-25 20:32:40 +00:00
|
|
|
|
|
|
|
platform:
|
2019-12-18 14:17:58 +00:00
|
|
|
- Win32
|
2017-04-28 00:18:59 +00:00
|
|
|
- x64
|
2017-04-25 20:32:40 +00:00
|
|
|
|
2017-08-10 09:16:43 +00:00
|
|
|
pull_requests:
|
|
|
|
do_not_increment_build_number: true
|
|
|
|
|
2018-09-23 14:27:31 +00:00
|
|
|
notifications:
|
|
|
|
- provider: Email
|
|
|
|
to:
|
|
|
|
- boinc_cvs@ssl.berkeley.edu
|
|
|
|
on_build_success: false
|
|
|
|
on_build_failure: true
|
|
|
|
on_build_status_changed: true
|
|
|
|
|
2017-08-10 09:16:43 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
skip_tags: true
|
|
|
|
|
2018-01-18 23:24:25 +00:00
|
|
|
skip_commits:
|
|
|
|
files:
|
2019-10-10 08:10:29 +00:00
|
|
|
- .github/
|
2018-01-27 22:48:29 +00:00
|
|
|
- 3rdParty/*.sh
|
2018-01-18 23:24:25 +00:00
|
|
|
- android/
|
2018-01-27 22:48:29 +00:00
|
|
|
- client/android/
|
|
|
|
- client/os2/
|
|
|
|
- client/scripts/
|
|
|
|
- clientgui/gtk/
|
|
|
|
- clientgui/mac/
|
|
|
|
- clientgui/skins/
|
2018-01-19 22:26:43 +00:00
|
|
|
- db/
|
2018-01-18 23:24:25 +00:00
|
|
|
- doc/
|
|
|
|
- drupal/
|
|
|
|
- html/
|
2019-10-10 08:10:29 +00:00
|
|
|
- integration_test
|
2018-01-27 22:48:29 +00:00
|
|
|
- lib/mac/
|
2018-01-18 23:24:25 +00:00
|
|
|
- locale/
|
2018-01-27 22:48:29 +00:00
|
|
|
- m4/
|
2018-01-18 23:24:25 +00:00
|
|
|
- mac_build/
|
|
|
|
- mac_installer/
|
2018-01-27 22:48:29 +00:00
|
|
|
- packages/
|
2018-01-18 23:24:25 +00:00
|
|
|
- py/
|
2018-01-27 22:48:29 +00:00
|
|
|
- stripchart/
|
2019-10-10 08:10:29 +00:00
|
|
|
- tests/
|
2018-01-19 22:26:43 +00:00
|
|
|
- tools/
|
|
|
|
- vda/
|
|
|
|
- xcompile/
|
2018-01-18 23:24:25 +00:00
|
|
|
|
2017-04-25 20:32:40 +00:00
|
|
|
configuration:
|
2018-10-23 07:58:01 +00:00
|
|
|
- Release
|
2017-04-25 20:32:40 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
2020-05-02 13:05:45 +00:00
|
|
|
- TOOLCHAIN_VERSION: 10.0
|
|
|
|
solution_name: win_build\boinc_vs2010.sln
|
|
|
|
depends_zip_path: https://boinc.berkeley.edu/dl/boinc_depends/boinc_depends_win_vs2010.zip
|
2020-05-02 22:56:38 +00:00
|
|
|
depends_path: C:\projects\boinc_depends_win_vs2010
|
2017-04-25 20:32:40 +00:00
|
|
|
- TOOLCHAIN_VERSION: 12.0
|
|
|
|
solution_name: win_build\boinc_vs2013.sln
|
2020-04-14 08:49:48 +00:00
|
|
|
depends_zip_path: https://boinc.berkeley.edu/dl/boinc_depends/boinc_depends_win_vs2013.zip
|
2017-04-25 20:32:40 +00:00
|
|
|
depends_path: C:\projects\boinc_depends_win_vs2013
|
2020-05-02 22:56:38 +00:00
|
|
|
- TOOLCHAIN_VERSION: 16.0
|
|
|
|
solution_name: win_build\boinc_vs2019.sln
|
2018-11-20 13:54:35 +00:00
|
|
|
BINTRAY_API_KEY:
|
|
|
|
secure: kZI9k0Kh2bFSCbXfkz+J16fGNAee1ToRMl10D8QPQsKpC2PqhF/uVMpd6gRC+OSI
|
2019-12-18 14:17:58 +00:00
|
|
|
APPVEYOR_CACHE_ENTRY_ZIP_ARGS: "-t7z -m0=lzma2 -mx=9 -ms=on"
|
2017-04-28 00:18:59 +00:00
|
|
|
|
|
|
|
cache:
|
2020-05-02 13:05:45 +00:00
|
|
|
- C:\projects\boinc_depends_win_vs2010 -> appveyor.yml, win_build\load_dependencies.bat
|
2020-06-13 15:36:38 +00:00
|
|
|
- C:\projects\boinc_depends_win_vs2013 -> appveyor.yml, win_build\load_dependencies.bat
|
|
|
|
- C:\projects\boinc_depends_win_vs2019 -> appveyor.yml
|
2017-04-25 20:32:40 +00:00
|
|
|
|
|
|
|
before_build:
|
2020-05-02 22:56:38 +00:00
|
|
|
- if %TOOLCHAIN_VERSION%==10.0 call win_build\load_dependencies.bat %depends_zip_path% %depends_path% %platform% %configuration%
|
|
|
|
- if %TOOLCHAIN_VERSION%==12.0 call win_build\load_dependencies.bat %depends_zip_path% %depends_path% %platform% %configuration%
|
2020-05-02 13:05:45 +00:00
|
|
|
- if %TOOLCHAIN_VERSION%==10.0 call "%VS100COMNTOOLS%\vsvars32.bat"
|
2020-05-02 22:56:38 +00:00
|
|
|
- if %TOOLCHAIN_VERSION%==10.0 call git apply boinc_vs2010.sln.ci.patch
|
2017-04-25 20:32:40 +00:00
|
|
|
- if %TOOLCHAIN_VERSION%==12.0 call "%VS120COMNTOOLS%\vsvars32.bat"
|
2019-12-18 14:17:58 +00:00
|
|
|
- if %TOOLCHAIN_VERSION%==12.0 call rmdir /S /Q %localappdata%\Microsoft\VisualStudio\%TOOLCHAIN_VERSION%\ComponentModelCache
|
2020-07-04 09:12:46 +00:00
|
|
|
- if %TOOLCHAIN_VERSION%==16.0 call "C:\Tools\vcpkg\vcpkg.exe" integrate remove
|
2020-05-02 22:56:38 +00:00
|
|
|
- if %TOOLCHAIN_VERSION%==16.0 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\vsdevcmd.bat"
|
2017-04-25 20:32:40 +00:00
|
|
|
|
|
|
|
build_script:
|
2020-05-02 22:56:38 +00:00
|
|
|
- msbuild %solution_name% /p:Configuration=%configuration%;Platform=%platform%;VcpkgTripletConfig=ci -m
|
2017-04-25 20:32:40 +00:00
|
|
|
|
2018-09-22 16:12:12 +00:00
|
|
|
after_build:
|
2020-05-02 13:05:45 +00:00
|
|
|
- if %TOOLCHAIN_VERSION%==12.0 call deploy\prepare_deployment.bat
|
|
|
|
- if %TOOLCHAIN_VERSION%==12.0 call deploy\deploy_to_bintray.bat
|
2020-06-13 15:36:38 +00:00
|
|
|
- if %TOOLCHAIN_VERSION%==16.0 call xcopy 3rdParty\Windows\vcpkg\installed ..\boinc_depends_win_vs2019 /e /i /y
|
2018-09-22 16:12:12 +00:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: deploy\win-apps\*.7z
|
|
|
|
name: win-apps
|
|
|
|
- path: deploy\win-client\*.7z
|
|
|
|
name: win-client
|
|
|
|
- path: deploy\win-manager\*.7z
|
|
|
|
name: win-manager
|
|
|
|
|
2020-06-29 05:34:42 +00:00
|
|
|
before_test:
|
|
|
|
- if %TOOLCHAIN_VERSION%==16.0 curl -fsSL https://github.com/csoltenborn/GoogleTestAdapter/releases/download/v0.18.0/GoogleTestAdapter-0.18.0.vsix -o C:\projects\GoogleTestAdapter.zip
|
|
|
|
- if %TOOLCHAIN_VERSION%==16.0 call 7z.exe x C:\projects\GoogleTestAdapter.zip -oC:\projects\GoogleTestAdapter -aoa
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
- if %TOOLCHAIN_VERSION%==16.0 call vstest.console.exe win_build\Build\%platform%\%configuration%\unittests.exe /TestAdapterPath:C:\projects\GoogleTestAdapter /logger:Appveyor
|
2020-05-02 22:56:38 +00:00
|
|
|
|
|
|
|
# on_finish:
|
|
|
|
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|