Add Travis CI configuration file

This commit is contained in:
baldurk
2016-05-21 11:45:29 +02:00
parent dfc8530d21
commit 035c9874a9
+37
View File
@@ -0,0 +1,37 @@
language: cpp
sudo: required
dist: trusty
compiler:
- gcc
- clang
branches:
only:
- master
env:
global:
- RENDERDOC_TRAVIS_BUILD=1 RENDERDOC_CI_BUILD=1
matrix:
- LINUX_BUILD=1 CODE_BUILD=1 DOCS_BUILD=0
- LINUX_BUILD=0 CODE_BUILD=0 DOCS_BUILD=1
# don't build docs twice on gcc/clang
matrix:
exclude:
- compiler: clang
env: DOCS_BUILD=1
# install dependencies
install:
- sudo apt-get update -qq
- if [ $CODE_BUILD ]; sudo apt-get install libx11-dev mesa-common-dev libgl1-mesa-dev qt5-default libqt5x11extras5-dev libxcb-keysyms1-dev ; fi
- if [ $DOCS_BUILD ]; sudo apt-get install python-sphinx python-sphinx-rtd-theme ; fi
script:
- sh ./hash_version.sh
- if [ $CODE_BUILD ]; then make ; fi
- if [ $DOCS_BUILD ]; cd docs/ && make html ; fi