Skip to content

Commit 8e6a165

Browse files
committed
Also do clang builds (but not tests!) in the first stage
1 parent 11dfcf6 commit 8e6a165

File tree

1 file changed

+66
-8
lines changed

1 file changed

+66
-8
lines changed

.travis.yml

Lines changed: 66 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
include:
55

66
- &formatting-stage
7-
stage: Linter + Doxygen + non-debug GCC builds
7+
stage: Linter + Doxygen + non-debug builds
88
env: NAME="clang-format"
99
addons:
1010
apt:
@@ -32,20 +32,20 @@ jobs:
3232
before_cache:
3333

3434
- &linter-stage
35-
stage: Linter + Doxygen + non-debug GCC builds
35+
stage: Linter + Doxygen + non-debug builds
3636
env: NAME="CPP-LINT"
3737
install:
3838
script: scripts/travis_lint.sh
3939
before_cache:
4040

4141
- &string-table-check
42-
stage: Linter + Doxygen + non-debug GCC builds
42+
stage: Linter + Doxygen + non-debug builds
4343
env: NAME="string-table"
4444
install:
4545
script: scripts/string_table_check.sh
4646
before_cache:
4747

48-
- stage: Linter + Doxygen + non-debug GCC builds
48+
- stage: Linter + Doxygen + non-debug builds
4949
env: NAME="DOXYGEN-CHECK"
5050
addons:
5151
apt:
@@ -69,7 +69,7 @@ jobs:
6969
- scripts/publish_doc.sh
7070

7171
# Ubuntu Linux with glibc using g++-5
72-
- stage: Linter + Doxygen + non-debug GCC builds
72+
- stage: Linter + Doxygen + non-debug builds
7373
os: linux
7474
sudo: false
7575
compiler: gcc
@@ -92,7 +92,7 @@ jobs:
9292
script: echo "Tests are run in the next stage."
9393

9494
# cmake build using g++-5
95-
- stage: Linter + Doxygen + non-debug GCC builds
95+
- stage: Linter + Doxygen + non-debug builds
9696
os: linux
9797
compiler: gcc
9898
cache: ccache
@@ -114,7 +114,7 @@ jobs:
114114
script: echo "Tests are run in the next stage."
115115

116116
# OS X using g++
117-
- stage: Linter + Doxygen + non-debug GCC builds
117+
- stage: Linter + Doxygen + non-debug builds
118118
os: osx
119119
sudo: false
120120
compiler: gcc
@@ -125,8 +125,48 @@ jobs:
125125
env: COMPILER="ccache g++"
126126
script: echo "Tests are run in the next stage."
127127

128+
# OS X using clang++
129+
- stage: Linter + Doxygen + non-debug builds
130+
os: osx
131+
sudo: false
132+
compiler: clang
133+
cache: ccache
134+
before_install:
135+
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache parallel
136+
- export PATH=$PATH:/usr/local/opt/ccache/libexec
137+
env: COMPILER="ccache clang++"
138+
script: echo "Tests are run in the next stage."
139+
140+
# Ubuntu Linux with glibc using clang++-3.7, no-debug mode
141+
- stage: Linter + Doxygen + non-debug builds
142+
os: linux
143+
sudo: false
144+
compiler: clang
145+
cache: ccache
146+
addons:
147+
apt:
148+
sources:
149+
- ubuntu-toolchain-r-test
150+
- llvm-toolchain-precise-3.7
151+
packages:
152+
- libwww-perl
153+
- clang-3.7
154+
- libstdc++-5-dev
155+
- libubsan0
156+
- parallel
157+
- libc6-dev-i386
158+
before_install:
159+
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
160+
- export CCACHE_CPP2=yes
161+
# env: COMPILER=clang++-3.7 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined,integer -fno-omit-frame-pointer"
162+
env:
163+
- COMPILER="ccache /usr/bin/clang++-3.7"
164+
- EXTRA_CXXFLAGS="-Qunused-arguments -fcolor-diagnostics -DNDEBUG"
165+
- CCACHE_CPP2=yes
166+
script: echo "Tests are run in the next stage."
167+
128168
# Ubuntu Linux with glibc using g++-5
129-
- stage: Test different OS/CXX/Flags
169+
- stage: Linter + Doxygen + non-debug builds
130170
os: linux
131171
sudo: false
132172
compiler: gcc
@@ -147,6 +187,24 @@ jobs:
147187
env:
148188
- COMPILER="ccache /usr/bin/g++-5"
149189
- EXTRA_CXXFLAGS="-D_GLIBCXX_DEBUG"
190+
script: echo "Tests are run in the next stage."
191+
192+
- stage: Linter + Doxygen + non-debug builds
193+
os: osx
194+
compiler: clang
195+
cache: ccache
196+
before_install:
197+
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
198+
- export PATH=$PATH:/usr/local/opt/ccache/libexec
199+
env:
200+
- BUILD_SYSTEM=cmake
201+
- CCACHE_CPP2=yes
202+
install:
203+
- ccache -z
204+
- ccache --max-size=1G
205+
- cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_OSX_ARCHITECTURES=x86_64'
206+
- cmake --build build -- -j4
207+
script: echo "Tests are run in the next stage."
150208

151209
# OS X using clang++
152210
- stage: Test different OS/CXX/Flags

0 commit comments

Comments
 (0)