Merge branch 'upstream' into tizen
[platform/upstream/iotivity.git] / extlibs / tinycbor / tinycbor / .travis.yml
1 language: cpp
2 os:
3   - linux
4   - osx
5 env:
6   - CFLAGS="-O0 -g" QMAKEFLAGS="-config debug" PATH=/opt/qt56/bin:/usr/local/opt/qt5/bin:$PATH
7 install:
8   - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
9         sudo apt-add-repository -y ppa:beineri/opt-qt56;
10         sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test;
11         sudo apt-get update -qq;
12         sudo apt-get install -y qt56base valgrind g++-5;
13     else
14         brew install qt5;
15     fi
16 script:
17   - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
18         sudo ln -sf g++-5 /usr/bin/g++;
19     fi
20   - make -s -f Makefile.configure configure | tee .config
21   - make
22         CFLAGS="$CFLAGS"
23         all tests/Makefile
24   - cd tests && make check -k
25         TESTRUNNER=`which valgrind 2>/dev/null`