Merge pull request #815 from juvester/ci-linux

CI: Build on Linux
This commit is contained in:
Jim 2017-02-25 13:13:03 -08:00 committed by GitHub
commit f3196f487d
3 changed files with 61 additions and 7 deletions

View File

@ -1,18 +1,29 @@
os: osx
language: cpp
env:
matrix:
- CMAKE_PREFIX_PATH=/usr/local/opt/qt5/lib/cmake
global:
# AWS S3 creds
# access key
- secure: "MfhOg+84yb4ZHB2tM8PIPFQX2Y+WLN0I0iiAgyLC4KaHPUoNOyloe9yk6OjV7Lj7SZWqTlQUsqHa8S9mOUswGIody1Ydglo4RvyGOKCd8I6b2ri/jE8qHVuD9sO+sNlIxq4YqqG/qReTsbSs2YEgLneZUCYLCk/fihl8L6eVuSc="
# secret
- secure: "JRQVU2zgC3hY6CEY+Crmh/upp93En0BzKaLcsuBT538johNlK7m5hn3m2UOw63seLvBvVaKKWUDj9N986a3DwcXxWPMyF/9ctXgNWy39WzaVWxrbVR5nQB1fdiRp5YEgkoVN+gEm3OVF7sV5AGzh5/8CvEdRCoTLIGgMGHxW9mc="
language: cpp
before_install: "./CI/install-dependencies-osx.sh"
before_script: "./CI/before-script-osx.sh"
matrix:
include:
- os: osx
env: CMAKE_PREFIX_PATH=/usr/local/opt/qt5/lib/cmake
before_install: "./CI/install-dependencies-osx.sh"
before_script: "./CI/before-script-osx.sh"
before_deploy: "./CI/before-deploy-osx.sh"
- os: linux
dist: trusty
sudo: required
before_install: "./CI/install-dependencies-linux.sh"
before_script: "./CI/before-script-linux.sh"
script: cd ./build && make -j4 && cd -
before_deploy: "./CI/before-deploy-osx.sh"
deploy:
provider: s3
access_key_id: $AWS_ACCESS_KEY
@ -24,6 +35,7 @@ deploy:
acl: public_read
on:
repo: jp9000/obs-studio
condition: "$TRAVIS_OS_NAME = osx"
# The channel name "azubu.il.us.quakenet.org#obs-dev" is encrypted against jp9000/obs-studio to prevent IRC spam of forks
notifications:

5
CI/before-script-linux.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
set -ex
mkdir build && cd build
cmake ..

View File

@ -0,0 +1,37 @@
#!/bin/sh
set -ex
sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next -y
sudo apt-get -qq update
sudo apt-get install -y \
build-essential \
checkinstall \
cmake \
libasound2-dev \
libavcodec-ffmpeg-dev \
libavdevice-ffmpeg-dev \
libavfilter-ffmpeg-dev \
libavformat-ffmpeg-dev \
libavutil-ffmpeg-dev \
libcurl4-openssl-dev \
libfontconfig-dev \
libfreetype6-dev \
libgl1-mesa-dev \
libjack-jackd2-dev \
libjansson-dev \
libpulse-dev \
libqt5x11extras5-dev \
libspeexdsp-dev \
libswresample-ffmpeg-dev \
libswscale-ffmpeg-dev \
libudev-dev \
libv4l-dev \
libvlc-dev \
libx11-dev \
libx264-dev \
libxcb-shm0-dev \
libxcb-xinerama0-dev \
libxcomposite-dev \
libxinerama-dev \
pkg-config \
qtbase5-dev