This repository has been archived by the owner on Oct 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
/
.travis.yml
166 lines (160 loc) · 4.33 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
language: cpp
addons:
apt:
packages: &global_deps
- libsqlite3-dev
- libcurl4-openssl-dev
- libxml2-dev
- libstfl-dev
- libjson-c-dev
- libncursesw5-dev
- asciidoc
addons:
apt:
packages: &clang_deps
- *global_deps
- g++-4.9 # required for someniceties in C++ standard library
newsbeuter_brew_commands: &osx_deps
- brew outdated "pkg-config" || brew upgrade "pkg-config"
- brew install "gettext" && brew link --force "gettext"
- brew outdated "sqlite" || brew upgrade "sqlite"
- brew outdated "curl" || brew upgrade "curl"
- brew install "libstfl"
- brew outdated "json-c" || brew upgrade "json-c"
- brew install "asciidoc"
- brew outdated "python" || brew upgrade "python"
- brew install "pyenv" || brew upgrade "pyenv"
- eval "$(pyenv init -)"
- pip2 install cpp-coveralls
- pyenv rehash
matrix:
fast_finish: true
include:
- compiler: gcc-4.9
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- *global_deps
env:
- COMPILER=g++-4.9
- GCOV=/usr/bin/gcov-4.9
- compiler: gcc-5
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- *global_deps
env:
- COMPILER=g++-5
- GCOV=/usr/bin/gcov-5
- compiler: gcc-6
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- *global_deps
env:
- COMPILER=g++-6
- GCOV=/usr/bin/gcov-6
- compiler: gcc-7
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- *global_deps
env:
- COMPILER=g++-7
- GCOV=/usr/bin/gcov-7
- compiler: clang
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- *clang_deps
env:
- COMPILER=clang++
- GCOV=/usr/bin/gcov
- compiler: clang-4.0
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages:
- clang-4.0
- *clang_deps
env:
- COMPILER=clang++-4.0
- GCOV=/usr/bin/gcov
- compiler: clang-5.0
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
- *clang_deps
env:
- COMPILER=clang++-5.0
- GCOV=/usr/bin/gcov
- compiler: gcc
os: osx
env:
- COMPILER=g++
- GCOV=/usr/bin/gcov
# a2x will run xmllint on generated files, so we have to pass the path
# to AsciiDoc's catalog files
- XML_CATALOG_FILES=/usr/local/etc/xml/catalog
before_install:
*osx_deps
- compiler: clang
os: osx
env:
- COMPILER=clang++
- GCOV=/usr/bin/gcov
# a2x will run xmllint on generated files, so we have to pass the path
# to AsciiDoc's catalog files
- XML_CATALOG_FILES=/usr/local/etc/xml/catalog
before_install:
*osx_deps
- addons:
apt:
packages:
- i18nspector
env:
- CHECKS=1
install:
- export CXX=$COMPILER
- cd ${TRAVIS_BUILD_DIR}
script:
- cd ${TRAVIS_BUILD_DIR}
# Compiling with optimizations enabled to get as accurate warnings as
# possible. --keep-going is used to process the maximum number of the files
# before failing; this will help with debugging build fails that happen on
# platforms that the developer doesn't have access to.
- if [ -z "$CHECKS" ]; then CXXFLAGS="-O3" make --keep-going all test ; fi
- if [ -z "$CHECKS" ]; then make distclean ; fi
- if [ -z "$CHECKS" ]; then make PROFILE=1 all test ; fi
- if [ -z "$CHECKS" ]; then ( cd test && ./test --order rand ) ; fi
- if [ -n "$CHECKS" ]; then make run-i18nspector | tee i18nspector.log && if `egrep '^(E|W):' i18nspector.log >/dev/null 2>&1` ; then false else true; fi ; fi
after_success:
- cd ${TRAVIS_BUILD_DIR}
- if [ -z "$CHECKS" ]; then ./submit-to-coveralls.sh ; fi