Fix h_get_where_clause_from_json_object on boolean causes #121
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake pkg-config check libsubunit-dev cppcheck libsystemd-dev libsqlite3-dev default-libmysqlclient-dev libpq-dev libjansson-dev sqlite3 | |
- name: cppcheck | |
run: cppcheck --force --enable=warning,missingInclude --error-exitcode=1 . | |
- name: dependencies | |
run: | | |
cd /opt | |
git clone https://github.com/babelouest/orcania.git | |
git clone https://github.com/babelouest/yder.git | |
mkdir build | |
cd build | |
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib ../orcania | |
make | |
sudo make install | |
rm -rf * | |
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib ../yder | |
make | |
sudo make install | |
rm -rf * | |
- name: build | |
run: | | |
mkdir build && cd build | |
cmake -DBUILD_HOEL_TESTING=on .. | |
make | |
sqlite3 /tmp/test.db < ../test/test.sqlite3.sql | |
make test package | |
sudo make install | |
rm -rf * && cmake -DWITH_SQLITE3=off -DWITH_MARIADB=off -DWITH_PGSQL=on .. | |
make package | |
rm -rf * && cmake -DWITH_SQLITE3=off -DWITH_MARIADB=on -DWITH_PGSQL=off .. | |
make package | |
rm -rf * && cmake -DWITH_SQLITE3=off -DWITH_MARIADB=on -DWITH_PGSQL=on .. | |
make package | |
rm -rf * && cmake -DWITH_SQLITE3=on -DWITH_MARIADB=off -DWITH_PGSQL=off .. | |
make package | |
rm -rf * && cmake -DWITH_SQLITE3=on -DWITH_MARIADB=off -DWITH_PGSQL=on .. | |
make package | |
rm -rf * && cmake -DWITH_SQLITE3=on -DWITH_MARIADB=on -DWITH_PGSQL=off .. | |
make package | |
rm -rf * && cmake -DWITH_SQLITE3=on -DWITH_MARIADB=on -DWITH_PGSQL=on .. | |
make package | |
rm -rf * | |
if $(cmake -DWITH_SQLITE3=off -DWITH_MARIADB=off -DWITH_PGSQL=off .. 1>/dev/null 2>&1); then echo "CMake build with no DB fail" && false; else echo "Build with no DB success"; fi | |
cd ../ | |
make clean debug | |
make clean debug DISABLE_SQLITE=1 DISABLE_MARIADB=1 | |
make clean debug DISABLE_SQLITE=1 DISABLE_POSTGRESQL=1 | |
make clean debug DISABLE_SQLITE=1 | |
make clean debug DISABLE_MARIADB=1 DISABLE_POSTGRESQL=1 | |
make clean debug DISABLE_MARIADB=1 | |
make clean debug DISABLE_POSTGRESQL=1 | |
if $(make clean debug DISABLE_SQLITE=1 DISABLE_MARIADB=1 DISABLE_POSTGRESQL=1 1>/dev/null 2>&1); then echo "Make build with no DB fail" && false; else echo "Build with no DB success"; fi | |
sqlite3 /tmp/test.db < test/test.sqlite3.sql | |
make clean check |