Skip to content

Commit f8514e3

Browse files
Test Clang and release GCC builds in Travis
Signed-off-by: Thiago Macieira <[email protected]>
1 parent cc2bfbb commit f8514e3

File tree

1 file changed

+49
-13
lines changed

1 file changed

+49
-13
lines changed

.travis.yml

Lines changed: 49 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,60 @@
11
language: cpp
2-
os:
3-
- linux
4-
- osx
5-
env:
6-
- CFLAGS="-O0 -g" QMAKEFLAGS="-config debug" PATH=/opt/qt59/bin:/usr/local/opt/qt5/bin:$PATH
7-
addons:
8-
apt:
9-
sources:
10-
- sourceline: 'ppa:beineri/opt-qt593-trusty'
11-
packages:
12-
- qt59base valgrind
2+
matrix:
3+
include:
4+
- os: linux
5+
addons:
6+
apt:
7+
sources:
8+
- ubuntu-toolchain-r-test
9+
- sourceline: 'ppa:beineri/opt-qt593-trusty'
10+
packages:
11+
- qt59base valgrind
12+
- g++-7
13+
env:
14+
- QMAKESPEC=linux-g++
15+
- EVAL="CC=gcc-7 && CXX=g++-7"
16+
- CFLAGS="-Os"
17+
- QMAKEFLAGS="-config release"
18+
- os: linux
19+
addons:
20+
apt:
21+
sources:
22+
- ubuntu-toolchain-r-test
23+
- llvm-toolchain-trusty-5.0
24+
- sourceline: 'ppa:beineri/opt-qt593-trusty'
25+
packages:
26+
- qt59base
27+
- clang-5.0
28+
env:
29+
- QMAKESPEC=linux-clang
30+
- EVAL="CC=clang-5.0 && CXX=clang++-5.0"
31+
- CFLAGS="-Oz"
32+
- QMAKEFLAGS="-config release"
33+
- os: osx
34+
env:
35+
- QMAKESPEC=macx-clang
36+
- CFLAGS="-Oz"
37+
- QMAKEFLAGS="-config debug"
38+
- PATH=/usr/local/opt/qt5/bin:$PATH
1339
install:
1440
- if [ "${TRAVIS_OS_NAME}" != "linux" ]; then
1541
brew update;
1642
brew install qt5;
1743
fi
1844
script:
45+
- PATH=`echo /opt/qt*/bin`:$PATH
46+
- eval "$EVAL"
1947
- make -s -f Makefile.configure configure | tee .config
48+
- make -k
49+
CFLAGS="$CFLAGS -march=native -g1 -Wall -Wextra -Werror"
50+
CPPFLAGS="-DNDEBUG"
51+
lib/libtinycbor.a
52+
- size lib/libtinycbor.a
53+
- make clean
54+
- make -k
55+
CFLAGS="$CFLAGS -O0 -g"
2056
- make
21-
CFLAGS="$CFLAGS"
22-
all tests/Makefile
57+
QMAKEFLAGS="$QMAKEFLAGS QMAKE_CXX=$CXX"
58+
tests/Makefile
2359
- cd tests && make check -k
2460
TESTRUNNER=`which valgrind 2>/dev/null`

0 commit comments

Comments
 (0)