代码拉取完成,页面将自动刷新
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'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。