Skip to content

Commit

Permalink
New appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
crackedmind committed Dec 21, 2017
1 parent 6ffc8d3 commit c879bc8
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 109 deletions.
92 changes: 0 additions & 92 deletions .appveyor/install.bat

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Provide paths to OpenAL-soft and Qt5 in CMAKE_PREFIX_PATH variable when configur

[![Version](https://badge.fury.io/gh/telegramdesktop%2Ftdesktop.svg)](https://github.com/telegramdesktop/tdesktop/releases)
[![Build Status](https://travis-ci.org/telegramdesktop/tdesktop.svg?branch=dev)](https://travis-ci.org/telegramdesktop/tdesktop)
[![Build status](https://ci.appveyor.com/api/projects/status/uiw2y768iy4i5bu8/branch/dev?svg=true)](https://ci.appveyor.com/project/telegramdesktop/tdesktop)
[![Build status](https://ci.appveyor.com/api/projects/status/2kodvgwvlua3o6hp/branch/dev?svg=true)](https://ci.appveyor.com/project/procxx/tdesktop)

[![Preview of Telegram Desktop][preview_image]][preview_image_url]

Expand Down
75 changes: 59 additions & 16 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,70 @@
pull_requests:
do_not_increment_build_number: true

branches:
except:
- upstream-dev
- upstream-master

skip_branch_with_pr: true

image: Visual Studio 2017
clone_folder: C:\TBuild\tdesktop
shallow_clone: true

clone_folder: C:\projects\tdesktop

test: off
deploy: off

environment:
matrix:
- BUILD_VERSION:
- BUILD_VERSION: disable_autoupdate
- BUILD_VERSION: disable_register_custom_scheme
- BUILD_VERSION: disable_crash_reports
- BUILD_VERSION: disable_network_proxy

matrix:
fast_finish: true

cache:
- c:\tools\vcpkg\installed\

environment:
qt_dir: C:\Qt\5.9\msvc2017_64

install:
- cmd: >-
vcpkg install --triplet x64-windows openal-soft openssl opus zlib ffmpeg
appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip
mkdir %APPVEYOR_BUILD_FOLDER%\build
7z x ninja-win.zip -o%APPVEYOR_BUILD_FOLDER%\build > nul
before_build:
- .\.appveyor\install.bat
- cmd: >-
set PATH=C:\Python35;%QT_DIR%\bin;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
cd %APPVEYOR_BUILD_FOLDER%\build
build_script:
- cmd: >-
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
cmake --build . --config RelWithDebInfo
build:
project: Telegram\Telegram.sln
after_build:
- cmd: >-
for %%f in (Qt5Core,Qt5Gui,Qt5Network,Qt5Widgets) do xcopy %QT_DIR%\bin\%%f.dll Telegram /Q /Y /I
xcopy %QT_DIR%\plugins\imageformats\qwebp.dll Telegram\imageformats\ /Q /Y /I
xcopy %QT_DIR%\plugins\imageformats\qjpeg.dll Telegram\imageformats\ /Q /Y /I
xcopy %QT_DIR%\plugins\platforms\qwindows.dll Telegram\platforms\ /Q /Y /I
7z a -mmt kepka.zip Telegram\Telegram.exe Telegram\Telegram.pdb Telegram\*.dll Telegram\platforms\* Telegram\imageformats\*
artifacts:
- path: out\Debug\Telegram.exe
name: Telegram_debug.exe
- path: out\Debug\Telegram.exe.pdb
name: Telegram_debug.exe.pdb
- path: build\kepka.zip

notifications:
- provider: GitHubPullRequest
auth_token:
secure: RTsEg5GuO6yWL2ha/fURkT9p6pzW/DS/yT0dR8Re7HsHxtQRkzaKU15n7pQdtEPN

0 comments on commit c879bc8

Please sign in to comment.