poco/.github/workflows/ci.yml

69 lines
4.0 KiB
YAML
Raw Normal View History

2021-06-16 14:41:29 +02:00
name: poco-ci
on: [push]
jobs:
2021-06-16 14:44:46 +02:00
linux-gcc-make:
2021-06-16 14:41:29 +02:00
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
2021-06-16 16:39:16 +02:00
- run: sudo apt update && sudo apt install libssl-dev ca-certificates unixodbc-dev libmysqlclient-dev redis-server
2021-06-16 14:46:36 +02:00
- run: ./configure --everything --omit=PDF && make all -s -j4 && sudo make install
2021-06-17 06:11:08 +02:00
- run: sudo -s EXCLUDE_TESTS="Data/MySQL Data/ODBC Data/PostgreSQL MongoDB" ./ci/runtests.sh
2021-06-16 15:17:49 +02:00
linux-gcc-make-asan:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
2021-06-16 16:39:16 +02:00
- run: sudo apt update && sudo apt install libssl-dev ca-certificates unixodbc-dev libmysqlclient-dev redis-server
2021-06-16 15:17:49 +02:00
- run: ./configure --everything --omit=PDF && make all -s -j4 SANITIZEFLAGS=-fsanitize=address && sudo make install
2021-06-17 06:11:08 +02:00
- run: sudo -s EXCLUDE_TESTS="Data/MySQL Data/ODBC Data/PostgreSQL MongoDB" ./ci/runtests.sh
2021-06-16 15:17:49 +02:00
linux-gcc-make-ubsan:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
2021-06-16 16:39:16 +02:00
- run: sudo apt update && sudo apt install libssl-dev ca-certificates unixodbc-dev libmysqlclient-dev redis-server
2021-06-16 15:17:49 +02:00
- run: ./configure --everything --omit=PDF && make all -s -j4 SANITIZEFLAGS=-fsanitize=undefined && sudo make install
2021-06-17 06:11:08 +02:00
- run: sudo -s EXCLUDE_TESTS="Data/MySQL Data/ODBC Data/PostgreSQL MongoDB" ./ci/runtests.sh
2021-06-16 15:17:49 +02:00
linux-gcc-cmake:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
2021-06-16 16:39:16 +02:00
- run: sudo apt update && sudo apt install cmake ninja-build libssl-dev ca-certificates unixodbc-dev libmysqlclient-dev redis-server
2021-06-16 20:23:19 +02:00
- run: 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)|(PostgreSQL)|(MongoDB)"
2021-06-16 15:17:49 +02:00
macos-clang-make:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- run: brew install openssl
2021-06-16 15:41:57 +02:00
- run: ./configure --everything --no-prefix --omit=PDF,Data/MySQL,Data/ODBC,Data/PostgreSQL && make all -s -j4
2021-06-17 06:11:08 +02:00
- run: >-
sudo -s
CPPUNIT_IGNORE="N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI24UniqueExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI11PollSetTestEE.testPollClosedServer"
EXCLUDE_TESTS="Redis Data/MySQL Data/ODBC Data/PostgreSQL MongoDB PDF"
./ci/runtests.sh
2021-06-16 15:17:49 +02:00
macos-clang-cmake:
2021-06-16 15:41:57 +02:00
runs-on: macos-10.15
2021-06-16 15:17:49 +02:00
steps:
- uses: actions/checkout@v2
- run: brew install openssl
2021-06-17 06:11:08 +02:00
- run: cmake -H. -Bcmake-build -DENABLE_PDF=OFF -DENABLE_TESTS=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl && cmake --build cmake-build --target all
- run: >-
sudo -s
cd cmake-build &&
CPPUNIT_IGNORE="N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI24UniqueExpireLRUCacheTestEE.testExpireN,N7CppUnit10TestCallerI18ExpireLRUCacheTestEE.testAccessExpireN,N7CppUnit10TestCallerI11PollSetTestEE.testPollClosedServer"
PWD=`pwd`
ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(PostgreSQL)|(MongoDB)|(Redis)"
2021-06-16 15:17:49 +02:00
windows-msvc-cmake:
runs-on: windows-2019
2021-06-16 20:23:19 +02:00
env:
CPPUNIT_IGNORE: class CppUnit::TestCaller<class PathTest>.testFind,class CppUnit::TestCaller<class ICMPSocketTest>.testSendToReceiveFrom,class CppUnit::TestCaller<class ICMPClientTest>.testPing,class CppUnit::TestCaller<class ICMPClientTest>.testBigPing,class CppUnit::TestCaller<class ICMPSocketTest>.testMTU,class CppUnit::TestCaller<class HTTPSClientSessionTest>.testProxy,class CppUnit::TestCaller<class HTTPSStreamFactoryTest>.testProxy
2021-06-16 15:17:49 +02:00
steps:
- uses: actions/checkout@v2
2021-06-16 16:39:16 +02:00
- run: cmake -S. -Bcmake-build -DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA_ODBC=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_TESTS=ON
- run: cmake --build cmake-build --config Release
- run: cd cmake-build; ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(Redis)|(MongoDB)" -C Release