Skip to content

Commit

Permalink
CI: add build time testing of OCI driver
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Feb 4, 2024
1 parent c4505ed commit 33e24da
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ubuntu_22.04/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ RUN curl -L -O https://github.com/Esri/file-geodatabase-api/raw/master/FileGDB_A
&& rm -rf FileGDB_API-64gcc51 \
&& ldconfig

# Oracle : client side (proprietary software)
RUN curl -L -O https://download.oracle.com/otn_software/linux/instantclient/199000/instantclient-basic-linux.x64-19.9.0.0.0dbru.zip \
&& curl -L -O https://download.oracle.com/otn_software/linux/instantclient/199000/instantclient-sdk-linux.x64-19.9.0.0.0dbru.zip \
&& unzip instantclient-basic-linux.x64-19.9.0.0.0dbru.zip -d /opt \
&& unzip instantclient-sdk-linux.x64-19.9.0.0.0dbru.zip -d opt \
&& apt-get install -y libaio1

COPY requirements.txt /tmp/
RUN python3 -m pip install -U -r /tmp/requirements.txt

4 changes: 4 additions & 0 deletions .github/workflows/ubuntu_22.04/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

set -e

LD_LIBRARY_PATH="/opt/instantclient_19_9:/opt/instantclient_19_9/lib:${LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH

cmake ${GDAL_SOURCE_DIR:=..} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="-Werror" \
-DCMAKE_CXX_FLAGS="-Werror" \
-DUSE_CCACHE=ON \
-DOracle_ROOT=/opt/instantclient_19_9 \
-DGDAL_USE_GEOTIFF_INTERNAL:BOOL=ON \
-DGDAL_USE_TIFF_INTERNAL:BOOL=ON

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ubuntu_22.04/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -e

. ../scripts/setdevenv.sh

LD_LIBRARY_PATH="/opt/instantclient_19_9:/opt/instantclient_19_9/lib:${LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH

export PYTEST="python3 -m pytest -vv -p no:sugar --color=no"

# Run C++ tests
Expand Down

0 comments on commit 33e24da

Please sign in to comment.