2012-12-16 02:59:57 +01:00
|
|
|
language: cpp
|
2014-11-08 19:33:26 +01:00
|
|
|
|
|
|
|
cache:
|
|
|
|
- apt
|
|
|
|
|
2015-12-21 12:36:08 +01:00
|
|
|
branches:
|
|
|
|
except:
|
2015-12-21 12:37:44 +01:00
|
|
|
- /*?pp?eyor*/
|
2015-12-21 12:36:08 +01:00
|
|
|
|
|
|
|
|
2013-12-18 14:23:40 +01:00
|
|
|
before_install:
|
2014-11-08 19:33:26 +01:00
|
|
|
# we need a recent version of CMake
|
2015-11-17 18:06:59 +01:00
|
|
|
# - sudo add-apt-repository -y ppa:andykimpe/cmake3
|
|
|
|
# linux prereqisite packages
|
2015-12-11 15:38:37 +01:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then wget --no-check-certificate https://www.cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.tar.gz; fi
|
2015-12-16 23:49:37 +01:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then tar -xzf cmake-3.2.3-Linux-x86_64.tar.gz -C ..; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then export PATH=$PWD/../cmake-3.2.3-Linux-x86_64/bin:$PATH; fi
|
2015-12-11 15:50:02 +01:00
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq -y unixodbc-dev libmysqlclient-dev libsqlite3-dev; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq -y g++-arm-linux-gnueabi g++-arm-linux-gnueabihf clang-3.5; fi
|
|
|
|
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -qq -y sloccount cppcheck; fi
|
2015-12-11 15:38:37 +01:00
|
|
|
|
2015-11-18 00:31:33 +01:00
|
|
|
|
2014-11-08 19:33:26 +01:00
|
|
|
services:
|
|
|
|
- mongodb
|
2015-11-22 06:57:16 +01:00
|
|
|
- redis-server
|
2015-12-17 09:14:06 +01:00
|
|
|
- mysql
|
2015-11-22 06:57:16 +01:00
|
|
|
|
2015-09-11 17:16:06 +02:00
|
|
|
notifications:
|
2015-12-01 20:18:06 +01:00
|
|
|
slack:
|
|
|
|
rooms:
|
2015-12-11 18:58:01 +01:00
|
|
|
- pocoproject:4iwY1QpB8fdU2WqpcZ6PpZhz#travis
|
2015-12-10 09:38:22 +01:00
|
|
|
- kampbell:v4ARuptk0ETzwUsKDdV6Gspb#poco
|
2014-11-08 19:33:26 +01:00
|
|
|
|
|
|
|
env:
|
|
|
|
global: TEST_NAME=""
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- echo ${TEST_NAME}
|
2015-11-17 23:56:51 +01:00
|
|
|
- sqlite3 -version
|
2014-11-08 19:33:26 +01:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2015-12-11 18:58:01 +01:00
|
|
|
- env: TEST_NAME="OSX clang (make) bundled"
|
2015-12-11 15:02:05 +01:00
|
|
|
compiler: clang
|
|
|
|
os: osx
|
|
|
|
script:
|
2015-12-16 19:14:43 +01:00
|
|
|
- ./configure --everything --omit=Data/ODBC,Data/MySQL,Data/SQLite
|
2015-12-16 09:41:18 +01:00
|
|
|
- cat config.*
|
2015-12-21 14:04:18 +01:00
|
|
|
- make install -j2 && ls -l /usr/local/lib/*Poco*
|
2015-12-15 21:23:37 +01:00
|
|
|
- find . -name "*testrunner*"
|
2015-12-16 09:41:18 +01:00
|
|
|
- ./travis/runtests.sh
|
2015-12-11 15:02:05 +01:00
|
|
|
|
2015-12-11 15:07:00 +01:00
|
|
|
- env: TEST_NAME="Linux gcc (make) bundled"
|
2014-11-08 19:33:26 +01:00
|
|
|
compiler: gcc
|
|
|
|
script:
|
2015-12-21 14:04:18 +01:00
|
|
|
- ./configure --everything && make install -s -j2 && ls -l /usr/local/lib/*Poco*
|
2015-12-10 16:09:30 +01:00
|
|
|
- ./travis/runtests.sh
|
2015-03-20 21:28:24 +01:00
|
|
|
|
2015-12-11 15:07:00 +01:00
|
|
|
- env: TEST_NAME="Linux gcc (make) unbundled"
|
2015-11-17 18:33:21 +01:00
|
|
|
compiler: gcc
|
|
|
|
script:
|
2015-11-19 08:26:49 +01:00
|
|
|
- sudo apt-get install -qq -y libpcre3-dev libssl-dev libexpat1-dev
|
2015-12-21 14:04:18 +01:00
|
|
|
- ./configure --everything --unbundled && make install -s -j2 && ls -l /usr/local/lib/*Poco*
|
2015-12-10 16:09:30 +01:00
|
|
|
- ./travis/runtests.sh
|
2015-11-17 18:33:21 +01:00
|
|
|
|
2015-12-11 15:07:00 +01:00
|
|
|
- env: TEST_NAME="Linux clang (make)"
|
2015-03-21 10:22:44 +01:00
|
|
|
compiler: clang
|
|
|
|
script:
|
2015-12-21 14:04:18 +01:00
|
|
|
- ./configure --everything --config=Linux-clang && make install -s -j2 && ls -l /usr/local/lib/*Poco*
|
2015-12-10 16:09:30 +01:00
|
|
|
- ./travis/runtests.sh
|
2014-11-08 19:33:26 +01:00
|
|
|
|
2015-12-11 15:07:00 +01:00
|
|
|
- env: TEST_NAME="Linux arm-linux-gnueabi- (make)"
|
2015-12-10 10:37:34 +01:00
|
|
|
script:
|
|
|
|
- ./configure --omit=Data/ODBC,Data/MySQL,Crypto,NetSSL,PageCompiler && make -s -j2 CROSS_COMPILE=arm-linux-gnueabi- POCO_TARGET_OSARCH=armv7l
|
2014-11-08 19:33:26 +01:00
|
|
|
|
2015-12-11 15:07:00 +01:00
|
|
|
- env: TEST_NAME="Linux gcc (CMake)"
|
2014-11-08 19:33:26 +01:00
|
|
|
compiler: gcc
|
|
|
|
script:
|
|
|
|
# disable tests, gcc-4.6 gets an internal compiler error
|
2015-12-21 14:04:18 +01:00
|
|
|
- mkdir cmake-build && cd cmake-build && cmake -DENABLE_TESTS=OFF .. && make install -j2 && cd .. && ls -l /usr/local/lib/*Poco*
|
2014-11-08 19:33:26 +01:00
|
|
|
|
|
|
|
- env: TEST_NAME="gcc-4.8 (CMake)"
|
|
|
|
compiler: gcc
|
|
|
|
script:
|
|
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get install -qq -y g++-4.8
|
|
|
|
- export CC="gcc-4.8"
|
|
|
|
- export CXX="g++-4.8"
|
2015-12-21 12:48:02 +01:00
|
|
|
- mkdir cmake-build && cd cmake-build && cmake -DENABLE_TESTS=ON .. && make install -j2 && cd ..
|
2014-11-08 19:33:26 +01:00
|
|
|
|
2015-12-11 15:07:00 +01:00
|
|
|
- env: TEST_NAME="Linux clang (CMake)"
|
2014-11-08 19:33:26 +01:00
|
|
|
compiler: clang
|
|
|
|
script:
|
2015-12-21 12:48:02 +01:00
|
|
|
- mkdir cmake-build && cd cmake-build && cmake -DENABLE_TESTS=ON .. && make install -j2 && cd ..
|
2014-11-08 19:33:26 +01:00
|
|
|
|
2015-12-11 15:07:00 +01:00
|
|
|
- env: TEST_NAME="Linux arm-linux-gnueabi-g++ (CMake)"
|
2014-11-08 19:33:26 +01:00
|
|
|
script:
|
|
|
|
- export CC="arm-linux-gnueabi-gcc"
|
|
|
|
- export CXX="arm-linux-gnueabi-g++"
|
2015-12-21 12:48:02 +01:00
|
|
|
- mkdir cmake-build && cd cmake-build && cmake -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_TESTS=ON .. && make install -j2 && cd ..
|
2014-11-08 19:33:26 +01:00
|
|
|
|
2015-12-11 15:07:00 +01:00
|
|
|
- env: TEST_NAME="Linux arm-linux-gnueabihf-g++ (CMake)"
|
2014-11-08 19:33:26 +01:00
|
|
|
script:
|
|
|
|
- export CC="arm-linux-gnueabihf-gcc"
|
|
|
|
- export CXX="arm-linux-gnueabihf-g++"
|
2015-12-21 12:48:02 +01:00
|
|
|
- mkdir cmake-build && cd cmake-build && cmake -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_TESTS=ON .. && make install -j2 && cd ..
|
2014-11-08 19:33:26 +01:00
|
|
|
|
|
|
|
# TODO osx build
|
|
|
|
# TODO run test suite
|
|
|
|
# script:
|
|
|
|
# - ./configure && make -s -j2
|
|
|
|
# - sudo ifconfig -a
|
|
|
|
# - sudo ifconfig venet0 multicast
|
|
|
|
# - sudo ifconfig -a
|
|
|
|
# - export POCO_BASE=`pwd`
|
|
|
|
# - sudo -E build/script/runtests.sh
|
2013-01-07 04:43:12 +01:00
|
|
|
|
2014-11-08 19:33:26 +01:00
|
|
|
# QA jobs for code analytics and metrics
|
2015-12-01 20:18:06 +01:00
|
|
|
# build documentation and release
|
|
|
|
- env: TEST_NAME="documentation & release"
|
|
|
|
compiler: gcc
|
|
|
|
script:
|
|
|
|
- . env.sh && mkdoc all && mkrel all
|
|
|
|
|
2014-11-08 19:33:26 +01:00
|
|
|
# static code analysis with cppcheck (we can add --enable=all later)
|
|
|
|
- env: TEST_NAME="cppcheck"
|
|
|
|
script: cppcheck --force --quiet --inline-suppr -j2 -iData/SQLite/src/sqlite3.c .
|
|
|
|
# search for TODO within source tree
|
|
|
|
- env: TEST_NAME="TODO"
|
|
|
|
script: grep -r TODO *
|
|
|
|
# search for FIXME within source tree
|
|
|
|
- env: TEST_NAME="FIXME"
|
|
|
|
script: grep -r FIXME *
|
|
|
|
# search for HACK within source tree
|
|
|
|
- env: TEST_NAME="HACK"
|
|
|
|
script: grep -r HACK *
|
|
|
|
# some statistics about the code base
|
|
|
|
- env: TEST_NAME="sloccount"
|
|
|
|
script: sloccount .
|