forked from networkupstools/nut-website
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
65 lines (54 loc) · 1.51 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
54
55
56
57
58
59
60
61
62
63
64
65
# Travis CI script
################################################################################
# This file is based on a template used by zproject, but isn't auto-generated. #
################################################################################
language:
- c
- python
python:
- '2.7'
cache:
pip: true
ccache: true
directories:
- output
- nut
- ddl
- package
- source
os:
- linux
sudo: required
services:
- docker
addons:
apt:
packages: &deps_gendocs
- asciidoc
- xsltproc
- dblatex
- docbook-xsl
- docbook-xsl-ns
- source-highlight
- libxml2-utils
- aspell
- aspell-en
- python-lxml
# Builds with customized setups
env:
matrix:
- BUILD_TYPE=spellcheck
- BUILD_TYPE=website
before_install:
- if [ $TRAVIS_OS_NAME == "osx" ] ; then brew update; brew install binutils asciidoc docbook-xsl ; XML_CATALOG_FILES=/usr/local/etc/xml/catalog ; export XML_CATALOG_FILES ; fi
install:
- if [ "$BUILD_TYPE" != spellcheck ] ; then sudo pip install pycparser && sudo pip install lxml && sudo pip install simplejson ; fi
# Hand off to generated script for each BUILD_TYPE
# TODO: Check if we need to remove the output/ dir before website (re)build
script:
- case "$BUILD_TYPE" in
website) ./autogen.sh && ./configure && make ;;
spellcheck) ./autogen.sh && ./configure && ( cd nut && ./configure --without-all --with-docs=man ) && make spellcheck ;;
default|'') exit 0 ;;
*) echo "Unknown BUILD_TYPE='$BUILD_TYPE'" >&2 ; exit 1;;
esac