-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into alinaliBQ/AD-522/config_window
- Loading branch information
Showing
64 changed files
with
11,498 additions
and
475 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,3 @@ jobs: | |
- uses: ZedThree/[email protected] | ||
id: review | ||
continue-on-error: true | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,45 +16,75 @@ env: | |
ODBC_BIN_PATH: "./build/odbc/bin/Release" | ||
ODBC_BUILD_PATH: "./build/odbc/cmake" | ||
VCPKG_ROOT: "c:/vcpkg" | ||
DOCUMENTDB_HOME: "./build/odbc/bin/Release" | ||
DOC_DB_KEYPAIR: ${{secrets.DOC_DB_KEYPAIR}} | ||
DOC_DB_USER_NAME: ${{secrets.DOC_DB_USER_NAME}} | ||
DOC_DB_PASSWORD: ${{secrets.DOC_DB_PASSWORD}} | ||
DOC_DB_USER: ${{secrets.DOC_DB_USER}} | ||
DOC_DB_HOST: ${{secrets.DOC_DB_HOST}} | ||
RUN_REMOTE_INTEGRATION_TESTS: ${{ github.event.inputs.testWithoutDocumnetDb && 'false' || 'true' }} | ||
DOC_DB_LOCAL_PORT: 27019 | ||
DOC_DB_REMOTE_PORT: 27017 | ||
DOC_DB_PRIV_KEY_FILE: ~/certs/docdb-sshtunnel.pem | ||
JDBC_DRIVER_VERSION: "1.1.0" | ||
|
||
jobs: | ||
build-windows32: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Get Java distribution | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
architecture: x86 | ||
|
||
- name: "Update path for Java" | ||
run: | | ||
echo "${{ env.JAVA_HOME }}\bin\server" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
- name: "Update path for WIX Toolset" | ||
run: | | ||
echo "C:\Program Files (x86)\WiX Toolset v3.11\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
- name: Get specific version CMake, v3.20.1 | ||
uses: lukka/[email protected] | ||
|
||
- name: add-msbuild-to-path | ||
uses: microsoft/[email protected] | ||
|
||
- name: Extract key-pair into file | ||
run: | | ||
mkdir -p ~/certs | ||
echo "${{env.DOC_DB_KEYPAIR}}" > ~/certs/docdb-sshtunnel.pem | ||
chmod 400 ~/certs/docdb-sshtunnel.pem | ||
mkdir -p ~/.ssh | ||
copy ./src/odbc-test/config/ssh_config ~/.ssh/config | ||
#- name: Run SSH tunnel to DocumentDB server | ||
# run: | | ||
# ssh.exe -f -N -i ~/certs/docdb-sshtunnel.pem -L ${{env.DOC_DB_LOCAL_PORT}}:${{secrets.DOC_DB_HOST}}:${{env.DOC_DB_REMOTE_PORT}} ${{secrets.DOC_DB_USER}} | ||
|
||
- name: Install dependencies Windows | ||
run: vcpkg integrate install; vcpkg install openssl:x86-windows boost-test:x86-windows boost-asio:x86-windows boost-chrono:x86-windows boost-interprocess:x86-windows boost-regex:x86-windows boost-system:x86-windows boost-thread:x86-windows | ||
env: | ||
VCPKG_ROOT: ${{ env.VCPKG_ROOT }} | ||
|
||
- name: configure-and-build-driver | ||
run: | | ||
.\build_win_release32.ps1 | ||
env: | ||
OPENSSL_ROOT_DIR: '${{ env.VCPKG_ROOT }}/packages/openssl_x86-windows' | ||
# - name: import-registry | ||
# run: | | ||
# reg import .\src\Tests\Tests\AWSProfileRegistry_Win32.reg | ||
# reg import .\src\Tests\Tests\IAMRegistry_Win32.reg | ||
# mkdir ${{ github.workspace }}\odbc-logs | ||
|
||
- name: register-driver | ||
run: | | ||
.\src\odbc\install\install_amd64.cmd ${{env.ODBC_BIN_PATH}}\ignite.odbc.dll ${{env.ODBC_BIN_PATH}}\ignite.odbc.dll | ||
- name: run-tests | ||
run: | | ||
${{ env.ODBC_BIN_PATH }}/ignite-odbc-tests.exe | ||
${{env.ODBC_BIN_PATH}}/ignite-odbc-tests.exe | ||
# - name: upload-test-report | ||
# if: failure() | ||
# uses: actions/upload-artifact@v2 | ||
|
@@ -91,39 +121,58 @@ jobs: | |
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Get Java distribution | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
architecture: x64 | ||
|
||
- name: "Update path for Java" | ||
run: | | ||
echo "${{ env.JAVA_HOME }}\bin\server" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
echo "${{env.JAVA_HOME}}\bin\server" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
- name: "Update path for WIX Toolset" | ||
run: | | ||
echo "C:\Program Files (x86)\WiX Toolset v3.11\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
- name: Get specific version CMake, v3.20.1 | ||
uses: lukka/[email protected] | ||
|
||
- name: add-msbuild-to-path | ||
uses: microsoft/[email protected] | ||
|
||
- name: Extract key-pair into file | ||
run: | | ||
mkdir -p ~/certs | ||
echo "${{env.DOC_DB_KEYPAIR}}" > ~/certs/docdb-sshtunnel.pem | ||
chmod 400 ~/certs/docdb-sshtunnel.pem | ||
mkdir -p ~/.ssh | ||
copy ./src/odbc-test/config/ssh_config ~/.ssh/config | ||
#- name: Run SSH tunnel to DocumentDB server | ||
# run: | | ||
# ssh.exe -f -N -i ~/certs/docdb-sshtunnel.pem -L ${{env.DOC_DB_LOCAL_PORT}}:${{secrets.DOC_DB_HOST}}:${{env.DOC_DB_REMOTE_PORT}} ${{secrets.DOC_DB_USER}} | ||
|
||
- name: Install dependencies Windows | ||
run: vcpkg integrate install; vcpkg install openssl:x64-windows boost-test:x64-windows boost-asio:x64-windows boost-chrono:x64-windows boost-interprocess:x64-windows boost-regex:x64-windows boost-system:x64-windows boost-thread:x64-windows | ||
env: | ||
VCPKG_ROOT: ${{ env.VCPKG_ROOT }} | ||
VCPKG_ROOT: ${{env.VCPKG_ROOT}} | ||
|
||
- name: configure-and-build-driver | ||
run: | | ||
.\build_win_release64.ps1 | ||
env: | ||
OPENSSL_ROOT_DIR: '${{ env.VCPKG_ROOT }}/packages/openssl_x64-windows' | ||
# - name: import-registry | ||
# run: | | ||
# reg import .\src\Tests\Tests\AWSProfileRegistry.reg | ||
# reg import .\src\Tests\Tests\IAMRegistry.reg | ||
# mkdir ${{ github.workspace }}\odbc-logs | ||
OPENSSL_ROOT_DIR: '${{env.VCPKG_ROOT}}/packages/openssl_x64-windows' | ||
|
||
- name: register-driver | ||
run: | | ||
.\src\odbc\install\install_amd64.cmd ${{env.ODBC_BIN_PATH}}\ignite.odbc.dll | ||
- name: run-tests | ||
run: | | ||
${{ env.ODBC_BIN_PATH }}/ignite-odbc-tests.exe | ||
${{env.ODBC_BIN_PATH}}/ignite-odbc-tests.exe | ||
# - name: upload-test-report | ||
# if: failure() | ||
# uses: actions/upload-artifact@v2 | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
|
||
BUILD_DIR=cmake-build64 | ||
BUILD_TYPE=Debug | ||
PROJECT_DIR=$(pwd) | ||
DRIVER_BIN_DIR="$PROJECT_DIR/build/odbc/bin" | ||
|
||
mkdir cmake-build64 | ||
cd cmake-build64 | ||
cmake ../src -DCMAKE_BUILD_TYPE="Debug" -DCODE_COVERAGE="ON" -DBUILD_SHARED_LIBS="OFF" -DWITH_TESTS="ON" -DWITH_CORE="OFF" -DWITH_ODBC="ON" | ||
cd .. | ||
|
||
# Download the DocumentDB JDBC Driver | ||
JDBC_DRIVER_VERSION="${JDBC_DRIVER_VERSION-1.1.0}" | ||
JDBC_DRIVER_FILENAME="documentdb-jdbc-$JDBC_DRIVER_VERSION-all.jar" | ||
JDBC_DRIVER_FULLPATH="$DRIVER_BIN_DIR/libs/$JDBC_DRIVER_FILENAME" | ||
export DOCUMENTDB_HOME="$DRIVER_BIN_DIR" | ||
if [ ! -f "$JDBC_DRIVER_FULLPATH" ]; then | ||
mkdir "$DRIVER_BIN_DIR/libs" | ||
echo "Downloading version $JDBC_DRIVER_VERSION of JDBC driver..." | ||
curl -o "$DRIVER_BIN_DIR/libs/$JDBC_DRIVER_FILENAME" -L https://github.com/aws/amazon-documentdb-jdbc-driver/releases/download/v$JDBC_DRIVER_VERSION/$JDBC_DRIVER_FILENAME | ||
echo "Download complete." | ||
fi | ||
|
||
cd cmake-build64 | ||
make ccov-all -j 4 | ||
cd .. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
mkdir cmake-build64 | ||
cd cmake-build64 | ||
cmake ../src -DCMAKE_BUILD_TYPE="Release" -DCODE_COVERAGE="OFF" -DBUILD_SHARED_LIBS="OFF" -DWITH_TESTS="ON" -DWITH_CORE="OFF" -DWITH_ODBC="ON" | ||
|
||
BUILD_DIR=cmake-build64 | ||
BUILD_TYPE=Release | ||
PROJECT_DIR=$(pwd) | ||
DRIVER_BIN_DIR="$PROJECT_DIR/build/odbc/bin" | ||
|
||
set -e | ||
mkdir $BUILD_DIR | ||
cd $BUILD_DIR | ||
cmake ../src -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DCODE_COVERAGE="OFF" -DBUILD_SHARED_LIBS="OFF" -DWITH_TESTS="ON" -DWITH_CORE="OFF" -DWITH_ODBC="ON" | ||
make -j 4 | ||
|
||
# Download the DocumentDB JDBC Driver | ||
JDBC_DRIVER_VERSION="${JDBC_DRIVER_VERSION-1.1.0}" | ||
JDBC_DRIVER_FILENAME="documentdb-jdbc-$JDBC_DRIVER_VERSION-all.jar" | ||
JDBC_DRIVER_FULLPATH="$DRIVER_BIN_DIR/libs/$JDBC_DRIVER_FILENAME" | ||
export DOCUMENTDB_HOME="$DRIVER_BIN_DIR" | ||
if [ ! -f "$JDBC_DRIVER_FULLPATH" ]; then | ||
mkdir "$DRIVER_BIN_DIR/libs" | ||
echo "Downloading version $JDBC_DRIVER_VERSION of JDBC driver..." | ||
curl -o "$DRIVER_BIN_DIR/libs/$JDBC_DRIVER_FILENAME" -L https://github.com/aws/amazon-documentdb-jdbc-driver/releases/download/v$JDBC_DRIVER_VERSION/$JDBC_DRIVER_FILENAME | ||
echo "Download complete." | ||
fi | ||
|
||
cd .. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
SOURCE="${BASH_SOURCE[0]}" | ||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | ||
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )" | ||
SOURCE="$(readlink "$SOURCE")" | ||
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located | ||
done | ||
|
||
SCRIPT_DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )" | ||
|
||
PROJECT_DIR="$SCRIPT_DIR/.." | ||
ODBC_LIB_PATH="$PROJECT_DIR/build/odbc/lib" | ||
ODBC_LIB_FILENAME="$ODBC_LIB_PATH/libignite-odbc.dylib" | ||
|
||
if [ ! -f "$ODBC_LIB_FILENAME" ] | ||
then | ||
echo "Cannot find ODBC library file: $ODBC_LIB_FILENAME" | ||
exit 1 | ||
fi | ||
|
||
echo "[Apache Ignite]" > "$ODBC_LIB_PATH/ignite-odbc-install.ini" | ||
echo "Description=Apache Ignite" >> "$ODBC_LIB_PATH/ignite-odbc-install.ini" | ||
echo "Driver=$ODBC_LIB_FILENAME" >> "$ODBC_LIB_PATH/ignite-odbc-install.ini" | ||
echo "Setup=$ODBC_LIB_FILENAME" >> "$ODBC_LIB_PATH/ignite-odbc-install.ini" | ||
echo "DriverODBCVer=03.00" >> "$ODBC_LIB_PATH/ignite-odbc-install.ini" | ||
echo "FileUsage=0" >> "$ODBC_LIB_PATH/ignite-odbc-install.ini" | ||
odbcinst -i -d -f "$ODBC_LIB_PATH/ignite-odbc-install.ini" |
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
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
Oops, something went wrong.