forked from pseudomuto/protoc-gen-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (48 loc) · 1.17 KB
/
.travis.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
language: cpp
addons:
apt:
packages:
- libqt5core5a
- qt5-qmake
- qt5-default
- libprotobuf-dev
- libprotoc-dev
- protobuf-compiler
- docbook-xsl
- fop
- libservlet2.4-java
matrix:
include:
- os: linux
dist: trusty
sudo: required
compiler: gcc
env:
- QMAKESPEC=linux-g++
- DOCBOOK_XSL=/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
- os: linux
dist: trusty
sudo: required
compiler: clang
env:
- QMAKESPEC=linux-clang
- DOCBOOK_XSL=/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
- os: osx
compiler: clang
env: DOCBOOK_XSL=/usr/local/opt/docbook-xsl/docbook-xsl/fo/docbook.xsl
before_install:
- '[[ "$TRAVIS_OS_NAME" != "osx" ]] || brew update'
install:
- '[[ "$TRAVIS_OS_NAME" != "osx" ]] || brew install qt5 protobuf fop docbook-xsl'
- '[[ "$TRAVIS_OS_NAME" != "osx" ]] || brew link --force qt5'
- '[[ "$TRAVIS_OS_NAME" != "osx" ]] || export PROTOBUF_PREFIX=$(brew --prefix protobuf)'
script:
- qmake
- make
- cd examples
- make clean
- make
- test -s doc/example.html
- test -s doc/example.md
- test -s doc/example.docbook
- test -s doc/example.pdf