-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.appveyor.yml
66 lines (55 loc) · 2.92 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
image: Visual Studio 2015
init:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
before_build:
- git clone https://github.com/zhang-ray/audio-processing-module
- cd ..
- ps: Start-FileDownload 'https://github.com/zhang-ray/opus/releases/download/1.0.5/opus-112-win32-build.7z'
- 7z x opus-112-win32-build.7z
- ps: Start-FileDownload 'https://github.com/zhang-ray/portaudio/releases/download/1.0.4/pa19-win32-x86-release-build.7z'
- 7z x pa19-win32-x86-release-build.7z
- mkdir include\boost
- mkdir easy-voice-call-build\ && cd easy-voice-call-build\
- cmake -Wno-dev ..\easy-voice-call
configuration:
- Release
build:
project: ..\easy-voice-call-build\easy-voice-call.sln
parallel: true
verbosity: quiet
after_build:
- mkdir artifacts
- copy C:\Libraries\boost_1_67_0\lib32-msvc-14.0\boost_date_time-vc140-mt-x32-1_67.dll artifacts\
- copy C:\Libraries\boost_1_67_0\lib32-msvc-14.0\boost_filesystem-vc140-mt-x32-1_67.dll artifacts\
- copy C:\Libraries\boost_1_67_0\lib32-msvc-14.0\boost_log-vc140-mt-x32-1_67.dll artifacts\
- copy C:\Libraries\boost_1_67_0\lib32-msvc-14.0\boost_system-vc140-mt-x32-1_67.dll artifacts\
- copy C:\Libraries\boost_1_67_0\lib32-msvc-14.0\boost_thread-vc140-mt-x32-1_67.dll artifacts\
- copy .\client_essential\Release\client_essential.dll artifacts\
- copy .\client_cli\Release\client_cli.exe artifacts\EasyVoiceCall.Client.Cli.exe
- copy .\client_qt5\Release\client_qt5.exe artifacts\EasyVoiceCall.exe
- copy .\server\Release\server.exe artifacts\EasyVoiceCall.Server.Windows.exe
- move .\tests\sanity_check\Release\sanity_check_audio.exe artifacts\
- C:\Qt\5.11\msvc2015\bin\windeployqt.exe artifacts\EasyVoiceCall.exe
- copy ..\easy-voice-call\scripts\EasyVoiceCall.nsi .
- makensis EasyVoiceCall.nsi
- move EasyVoiceCall.Client.Windows.Installer.exe ..\easy-voice-call\
test_script: #sanity check
- ..\easy-voice-call\EasyVoiceCall.Client.Windows.Installer.exe /S /D # silently, default
- cd "C:\Program Files (x86)\EasyVoiceCall\"
- ps: Start-Process -FilePath "EasyVoiceCall.Server.Windows.exe" -ArgumentList "1222 echo" -PassThru
- ps: Start-Process -FilePath "EasyVoiceCall.exe" -PassThru
- ps: Start-FileDownload 'https://github.com/zhang-ray/playground-github/releases/download/voice_material/mono16le16kHz.pcm'
- move mono16le16kHz.pcm audioInStub.pcm
- sanity_check_audio.exe
artifacts:
- path: EasyVoiceCall.Client.Windows.Installer.exe
deploy:
provider: GitHub
auth_token:
secure: PiQDTyaNV3HdYRawTlwyD/bsMbpBg2Kx+/BEUEz9qOasvZlDBmxj3tFB0bNYwXIc
artifact: EasyVoiceCall.Client.Windows.Installer.exe
draft: false
prerelease: false
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only