forked from vlc-qt/vlc-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
82 lines (69 loc) · 2.94 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: 1.2.0.{build}
branches:
except:
- project/travis
- project/docs
- platform/mobile
environment:
vlcqt_version: 1.2.0
vlc_version: 2.2.6
matrix:
# MSVC x86
- name: win32
platform: amd64_x86
qt: 5.9\msvc2015
suffix: msvc2015
# MSVC x64
- name: win64
platform: amd64
qt: 5.9\msvc2015_64
suffix: msvc2015
# MinGW
- name: win32
platform: mingw
qt: 5.9\mingw53_32
suffix: mingw
init:
- if %platform%==mingw set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- if %platform%==mingw set PATH=C:\Qt\Tools\mingw530_32\bin;%PATH%
- set PATH=C:\Qt\%qt%\bin;%PATH%
- if not %platform%==mingw call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %platform%
- if not %platform%==mingw (set makefiles="NMake Makefiles") else (set makefiles="MinGW Makefiles")
- if %APPVEYOR_REPO_TAG%==true (set nogitinfo=ON) else (set nogitinfo=OFF)
clone_folder: c:\dev\vlc-qt
install:
- cd c:\dev
- md install
- md dependencies
- cd dependencies
- ps: $vlcdl = 'http://download.videolan.org/vlc/' + $env:vlc_version + '/' + $env:name + '/vlc-' + $env:vlc_version + '-' + $env:name + '.7z'
- ps: Start-FileDownload $vlcdl -FileName vlc.7z
- 7z x vlc.7z > NUL
- move vlc-* vlc-%name%
- cd vlc-%name%
- if not %platform%==mingw call ..\..\vlc-qt\scripts\win\vlc_symbols_%name%.bat
before_build:
- cd c:\dev\vlc-qt
- md build-release
- md build-debug
build_script:
- cd build-release
- cmake .. -G %makefiles% -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="c:/dev/install" -DCI=ON -DNO_GIT=%nogitinfo% -DBUILD_TESTS=ON -DLIBVLC_LIBRARY="c:/dev/dependencies/vlc-%name%/sdk/lib/libvlc.lib" -DLIBVLCCORE_LIBRARY="c:/dev/dependencies/vlc-%name%/sdk/lib/libvlccore.lib" -DLIBVLC_INCLUDE_DIR="c:/dev/dependencies/vlc-%name%/sdk/include"
- if not %platform%==mingw (nmake) else (mingw32-make)
- if not %platform%==mingw (nmake install) else (mingw32-make install)
- cd ..
- cd build-debug
- cmake .. -G %makefiles% -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="c:/dev/install" -DCI=ON -DNO_GIT=%nogitinfo% -DLIBVLC_LIBRARY="c:/dev/dependencies/vlc-%name%/sdk/lib/libvlc.lib" -DLIBVLCCORE_LIBRARY="c:/dev/dependencies/vlc-%name%/sdk/lib/libvlccore.lib" -DLIBVLC_INCLUDE_DIR="c:/dev/dependencies/vlc-%name%/sdk/include"
- if not %platform%==mingw (nmake) else (mingw32-make)
- if not %platform%==mingw (nmake install) else (mingw32-make install)
after_build:
- cd c:\dev\install
- if %APPVEYOR_REPO_TAG%==true (set buildname=%vlcqt_version%) else (set buildname=%vlcqt_version%_build%APPVEYOR_BUILD_NUMBER%_%APPVEYOR_REPO_COMMIT:~0,7%)
- 7z a ..\vlc-qt\VLC-Qt_%buildname%_%name%_%suffix%.7z bin lib include
- cd c:\dev\vlc-qt
test_script:
- cd c:\dev\vlc-qt\build-release
- if not %platform%==mingw (nmake test) else (mingw32-make test)
- cd c:\dev\vlc-qt
artifacts:
- path: '*.7z'