poco/.travis.yml

294 lines
11 KiB
YAML
Raw Normal View History

language: cpp
cache:
- apt
services:
- mongodb
2020-02-08 08:12:34 +01:00
- redis
2017-11-08 21:48:55 +01:00
- postgresql
- mysql
addons:
postgresql: "9.4"
2018-04-01 10:50:10 +02:00
git:
submodules: false
notifications:
slack:
secure: "EKysuMlTU3Uv5XFX+zuwHK/ej4wtD8+UjO5xvchCFMkRgM0V3rERVT1rV6NocNBH4hjTcvue9DEKdWAtqdDh06vTOHGKdnZ/e204jA38HfcIA0SPVbQXzjckQXALvKl51OPOmGuI7Feo4wyohzUyGoDLo1bom02xqDfC3caQB5Q="
2020-02-08 08:12:34 +01:00
jobs:
include:
2020-02-08 11:50:33 +01:00
- name: Android (API level 19)
2020-02-08 08:32:05 +01:00
os: linux
dist: bionic
arch: amd64
2019-08-05 08:24:49 +02:00
addons:
apt:
packages:
- openjdk-8-jdk
before_install:
2019-08-05 08:24:49 +02:00
- export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
- wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
- unzip -qq sdk-tools-linux-4333796.zip -d /opt/android-sdk
- rm sdk-tools-linux-4333796.zip
- echo "y" | /opt/android-sdk/tools/bin/sdkmanager "platform-tools" "system-images;android-24;default;armeabi-v7a" "platforms;android-24" "emulator" "ndk-bundle" "cmake;3.10.2.4988404" > /dev/null
before_script:
- export TERM=dumb
- export _NO_CHECK_SIGNATURE=true
2019-08-05 08:24:49 +02:00
- export ANDROID_SDK_ROOT=/opt/android-sdk
- echo no | /opt/android-sdk/tools/bin/avdmanager create avd -n test -k "system-images;android-24;default;armeabi-v7a"
- /opt/android-sdk/emulator/emulator -avd test -no-audio -no-window -dns-server 8.8.8.8 &
#- android-wait-for-emulator || android-wait-for-emulator
- /opt/android-sdk/platform-tools/adb shell input keyevent 82 &
script:
2019-08-07 08:09:15 +02:00
# Mandatory cmake parameter to set API level and platform for the android toolchain:
# /usr/local/android-sdk/cmake/3.6.4111459/bin/cmake -DCMAKE_TOOLCHAIN_FILE=/usr/local/android-sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-22
# See also in /usr/local/android-sdk/ndk-bundle/build/cmake/android.toolchain.cmake
# Using the ninja build command. Is much faster then make build command.
2019-08-05 08:24:49 +02:00
- /opt/android-sdk/cmake/3.10.2.4988404/bin/cmake -H. -Bcmake-build -GNinja -DANDROID_ABI=armeabi-v7a -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/opt/android-sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_PLATFORM=android-19 -DCMAKE_MAKE_PROGRAM=/opt/android-sdk/cmake/3.10.2.4988404/bin/ninja -DANDROID_STL="c++_static" -DANDROID_CPP_FEATURES="exceptions rtti" -DENABLE_APACHECONNECTOR=OFF -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_TESTS=ON -DENABLE_LONG_RUNNING_TESTS=OFF -DOLD_REDIS_VERSION=ON &&
/opt/android-sdk/cmake/3.10.2.4988404/bin/cmake --build cmake-build --target all #&&
#cd cmake-build && travis_wait 30 /opt/android-sdk/cmake/3.10.2.4988404/bin/ctest -E Foundation --output-on-failure FIXME Android emulator hangs
2020-02-08 11:50:33 +01:00
- name: Android (API level 24 arm64-v8a)
2020-02-08 08:32:05 +01:00
os: linux
dist: bionic
arch: amd64
2019-08-05 17:40:45 +02:00
addons:
apt:
packages:
- openjdk-8-jdk
before_install:
2019-08-05 17:40:45 +02:00
- export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
- wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
- unzip -qq sdk-tools-linux-4333796.zip -d /opt/android-sdk
- rm sdk-tools-linux-4333796.zip
- echo "y" | /opt/android-sdk/tools/bin/sdkmanager "platform-tools" "system-images;android-24;default;arm64-v8a" "platforms;android-24" "emulator" "ndk-bundle" "cmake;3.10.2.4988404" > /dev/null
before_script:
- export TERM=dumb
- export _NO_CHECK_SIGNATURE=true
2019-08-05 17:40:45 +02:00
- export ANDROID_SDK_ROOT=/opt/android-sdk
- echo no | /opt/android-sdk/tools/bin/avdmanager create avd -n test -k "system-images;android-24;default;arm64-v8a"
- /opt/android-sdk/emulator/emulator -avd test -no-audio -no-window -dns-server 8.8.8.8 &
#- android-wait-for-emulator || android-wait-for-emulator
- /opt/android-sdk/platform-tools/adb shell input keyevent 82 &
script:
2019-08-07 08:09:15 +02:00
# Mandatory cmake parameter to set API level and platform for the android toolchain:
# /usr/local/android-sdk/cmake/3.6.4111459/bin/cmake -DCMAKE_TOOLCHAIN_FILE=/usr/local/android-sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-22
# See also in /usr/local/android-sdk/ndk-bundle/build/cmake/android.toolchain.cmake
# Using the ninja build command. Is much faster then make build command.
2019-08-05 17:40:45 +02:00
- /opt/android-sdk/cmake/3.10.2.4988404/bin/cmake -H. -Bcmake-build -GNinja -DANDROID_ABI=arm64-v8a -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/opt/android-sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_PLATFORM=android-24 -DCMAKE_MAKE_PROGRAM=/opt/android-sdk/cmake/3.10.2.4988404/bin/ninja -DANDROID_STL="c++_static" -DANDROID_CPP_FEATURES="exceptions rtti" -DENABLE_APACHECONNECTOR=OFF -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_TESTS=ON -DENABLE_LONG_RUNNING_TESTS=OFF -DOLD_REDIS_VERSION=ON &&
/opt/android-sdk/cmake/3.10.2.4988404/bin/cmake --build cmake-build --target all #&&
#cd cmake-build && travis_wait 30 /opt/android-sdk/cmake/3.10.2.4988404/bin/ctest -E Foundation --output-on-failure FIXME Android emulator hangs
2020-02-08 11:50:33 +01:00
- name: Linux (clang, make)
2020-02-08 08:32:05 +01:00
os: linux
dist: bionic
arch: amd64
2020-02-08 08:23:52 +01:00
addons:
apt:
packages:
- libssl-dev
- unixodbc-dev
- libmysqlclient-dev
2015-10-06 16:32:28 +02:00
compiler: clang
script:
2018-05-13 19:06:09 +02:00
- ./configure --everything --omit=PDF --config=Linux-clang && make all -s -j2 && sudo make install
- sudo -s ./travis/runtests.sh
2020-02-08 11:50:33 +01:00
- name: Linux (gcc, make)
2020-02-08 08:32:05 +01:00
os: linux
dist: bionic
2020-02-08 08:36:53 +01:00
arch: amd64
2020-02-08 08:23:52 +01:00
addons:
apt:
packages:
- libssl-dev
- unixodbc-dev
- libmysqlclient-dev
2020-02-08 07:35:38 +01:00
compiler: gcc
script:
- ./configure --everything --omit=PDF && make all -s -j2 && sudo make install
- sudo -s ./travis/runtests.sh
2020-02-08 11:50:33 +01:00
- name: Linux (gcc, make, arm64)
2020-02-08 08:36:53 +01:00
os: linux
dist: bionic
arch: arm64
addons:
apt:
packages:
- libssl-dev
compiler: gcc
script:
2020-02-08 20:30:24 +01:00
# skip some libs due to build timeout
- ./configure --everything --omit=PDF,Data/MySQL,Data/ODBC,Data/PostgreSQL,MongoDB,Redis && make all -s -j2 && sudo make install
2020-02-08 08:36:53 +01:00
- sudo -s ./travis/runtests.sh
2020-02-08 20:30:24 +01:00
- name: Linux (gcc, make, ppc64le)
2020-02-08 15:28:36 +01:00
os: linux
dist: bionic
arch: ppc64le
addons:
apt:
packages:
- libssl-dev
- libmysqlclient-dev
compiler: gcc
script:
2020-02-09 06:40:17 +01:00
- ./configure --everything --omit=PDF,Data/ODBC,Data/PostgreSQL,Redis && make all -s -j2 && sudo make install
2020-02-08 15:28:36 +01:00
- sudo -s ./travis/runtests.sh
2020-02-08 11:50:33 +01:00
- name: Linux (gcc, make, s390x)
2020-02-08 08:36:53 +01:00
os: linux
dist: bionic
arch: s390x
addons:
apt:
packages:
- libssl-dev
- unixodbc-dev
- libmysqlclient-dev
compiler: gcc
script:
2020-02-09 06:40:17 +01:00
- ./configure --everything --omit=PDF,Redis && make all -s -j2 && sudo make install
2020-02-08 08:36:53 +01:00
- sudo -s ./travis/runtests.sh
2020-02-08 15:28:36 +01:00
- name: macOS (clang, make)
os: osx
osx_image: xcode11.3
addons:
homebrew:
packages:
- openssl
script:
2020-02-09 06:40:17 +01:00
- ./configure --everything --no-prefix --omit=PDF,Data/MySQL,Data/ODBC,Data/PostgreSQL,Redis && make all -s -j2 && sudo make install
# ignore test results for now as timing-sensitive tests fail randomly
- sudo -s ./travis/runtests.sh || true
2020-02-08 15:28:36 +01:00
2020-02-08 11:50:33 +01:00
- name: Linux (gcc, cmake)
2020-02-08 08:32:05 +01:00
os: linux
dist: bionic
arch: amd64
compiler: gcc
2020-02-08 08:23:52 +01:00
addons:
apt:
packages:
- cmake
2020-02-08 09:38:09 +01:00
- ninja-build
2020-02-08 08:23:52 +01:00
- libssl-dev
- unixodbc-dev
- libmysqlclient-dev
script:
2020-02-09 06:46:44 +01:00
- cmake -H. -Bcmake-build -GNinja -DENABLE_PDF=OFF -DENABLE_TESTS=ON && cmake --build cmake-build --target all && cd cmake-build && sudo -s PWD=`pwd` ctest --output-on-failure -E "(DataMySQL)|(DataODBC)"
2020-02-08 11:50:33 +01:00
- name: Linux (clang, cmake)
2020-02-08 08:32:05 +01:00
os: linux
dist: bionic
arch: amd64
compiler: clang
2020-02-08 08:23:52 +01:00
addons:
apt:
packages:
- cmake
2020-02-08 09:38:09 +01:00
- ninja-build
2020-02-08 08:23:52 +01:00
- libssl-dev
- unixodbc-dev
- libmysqlclient-dev
script:
2020-02-09 06:46:44 +01:00
- cmake -H. -Bcmake-build -GNinja -DENABLE_PDF=OFF -DENABLE_TESTS=ON && cmake --build cmake-build --target all && cd cmake-build && sudo -s PWD=`pwd` ctest --output-on-failure -E "(DataMySQL)|(DataODBC)"
2020-02-08 11:50:33 +01:00
- name: Linux cross (arm-linux-gnueabi-g++, cmake)
2020-02-08 08:32:05 +01:00
os: linux
dist: bionic
arch: amd64
2020-02-08 08:23:52 +01:00
addons:
apt:
packages:
- cmake
2020-02-08 09:38:09 +01:00
- ninja-build
2020-02-08 08:23:52 +01:00
- libssl-dev
- unixodbc-dev
- libmysqlclient-dev
- g++-arm-linux-gnueabi
script:
- export CC="arm-linux-gnueabi-gcc"
- export CXX="arm-linux-gnueabi-g++"
- cmake -H. -Bcmake-build -GNinja -DENABLE_PDF=OFF -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_TESTS=ON && cmake --build cmake-build --target all
2020-02-08 11:50:33 +01:00
- name: Linux cross (arm-linux-gnueabihf-g++, cmake)
2020-02-08 08:32:05 +01:00
os: linux
dist: bionic
arch: amd64
2020-02-08 08:23:52 +01:00
addons:
apt:
packages:
- cmake
2020-02-08 11:50:33 +01:00
- ninja-build
2020-02-08 08:23:52 +01:00
- libssl-dev
- unixodbc-dev
- libmysqlclient-dev
- g++-arm-linux-gnueabihf
script:
- export CC="arm-linux-gnueabihf-gcc"
- export CXX="arm-linux-gnueabihf-g++"
- cmake -H. -Bcmake-build -GNinja -DENABLE_PDF=OFF -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_TESTS=ON && cmake --build cmake-build --target all
# build documentation and release
2020-02-08 11:50:33 +01:00
- name: Documentation & Release
2020-02-08 08:32:05 +01:00
os: linux
dist: bionic
arch: amd64
2017-11-08 15:40:38 +01:00
compiler: clang
script:
- . env.sh && mkdoc all && mkrel all
- ls -l releases
# QA jobs for code analytics and metrics
# static code analysis with cppcheck (we can add --enable=all later)
2020-02-08 11:50:33 +01:00
- name: CppCheck
2020-02-08 08:32:05 +01:00
os: linux
dist: bionic
arch: amd64
2020-02-08 13:45:56 +01:00
addons:
apt:
packages:
- cppcheck
script: cppcheck --force --quiet --inline-suppr -j2 -iData/SQLite/src/sqlite3.c .
# search for TODO within source tree
2020-02-08 11:50:33 +01:00
- name: TODO
2020-02-08 08:32:05 +01:00
os: linux
dist: bionic
arch: amd64
script: grep -r TODO *
# search for FIXME within source tree
2020-02-08 11:50:33 +01:00
- name: FIXME
2020-02-08 08:32:05 +01:00
os: linux
dist: bionic
arch: amd64
script: grep -r FIXME *
# search for HACK within source tree
2020-02-08 11:50:33 +01:00
- name: HACK
2020-02-08 08:32:05 +01:00
os: linux
dist: bionic
arch: amd64
script: grep -r HACK *
# some statistics about the code base
2020-02-08 11:50:33 +01:00
- name: Sloccount
2020-02-08 08:32:05 +01:00
os: linux
dist: bionic
arch: amd64
2020-02-08 13:45:56 +01:00
addons:
apt:
packages:
- sloccount
script: sloccount .