CI: Build on Linux with AppVeyor

Build on Linux (Ubuntu 16.04) with AppVeyor. Disable PowerShell on
Linux. Ubuntu 16.04's dependencies are different from the existing
Ubuntu 14.04 dependencies, so a separate script for installing those
dependencies has been added.
master
Ryan Foster 2018-09-18 15:12:33 -04:00
parent 7b81248a30
commit c3b2380b13
3 changed files with 53 additions and 1 deletions

View File

@ -0,0 +1,40 @@
#!/bin/sh
set -ex
sudo apt-get -qq update
sudo apt-get install -y \
build-essential \
checkinstall \
cmake \
libasound2-dev \
libavcodec-dev \
libavdevice-dev \
libavfilter-dev \
libavformat-dev \
libavutil-dev \
libcurl4-openssl-dev \
libfdk-aac-dev \
libfontconfig-dev \
libfreetype6-dev \
libgl1-mesa-dev \
libjack-jackd2-dev \
libjansson-dev \
libluajit-5.1-dev \
libpulse-dev \
libqt5x11extras5-dev \
libspeexdsp-dev \
libswresample-dev \
libswscale-dev \
libudev-dev \
libv4l-dev \
libvlc-dev \
libx11-dev \
libx264-dev \
libxcb-shm0-dev \
libxcb-xinerama0-dev \
libxcomposite-dev \
libxinerama-dev \
pkg-config \
python3-dev \
qtbase5-dev \
swig

4
CI/install-script-linux.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
set -ex
build_config=RelWithDebInfo

View File

@ -1,15 +1,23 @@
image: Visual Studio 2017
image:
- Ubuntu
- Visual Studio 2017
environment:
CURL_VERSION: 7.56.1
CEF_VERSION: 3.3440.1805.gbe070f9
APPVEYOR_YML_DISABLE_PS_LINUX: true
install:
- git submodule update --init --recursive
- cmd: C:\projects\obs-studio\CI\install-script-win.cmd
- sh: ./CI/install-dependencies-linux-ubuntu16.sh
- sh: ./CI/before-script-linux.sh
- sh: ./CI/install-script-linux.sh
build_script:
- cmd: call msbuild /m /p:Configuration=%build_config% C:\projects\obs-studio\build32\obs-studio.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cmd: call msbuild /m /p:Configuration=%build_config% C:\projects\obs-studio\build64\obs-studio.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- sh: cd ./build && make -j4 && cd -
before_deploy:
- cmd: C:\projects\obs-studio\CI\before-deploy-win.cmd