Skip to content

Commit ca897ac

Browse files
committed
fix tests and 3.1
1 parent 3a239c9 commit ca897ac

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.circleci/config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ common: &common
1212
name: create gdal docker image
1313
command: |
1414
docker build -f base/gdal${GDAL_VERSION}/Dockerfile -t gdal${GDAL_VERSION} .
15+
16+
- run:
17+
name: test image
18+
command: |
1519
docker run --name lambda --volume $(pwd)/:/local -itd gdal${GDAL_VERSION} bash
1620
test=$(docker exec -it lambda bash -c 'cd /local/tests && sh tests.sh')
17-
docker cp ./scripts/create-lambda-layer.sh lambda:/tmp/create-lambda-layer.sh
18-
docker exec -it lambda bash -c '/tmp/create-lambda-layer.sh'
1921
docker stop lambda
2022
docker rm lambda
2123
if [[ "$test" =~ "OK" ]]; then echo "PASSED"; else exit 1; fi
22-
24+
2325
- run:
2426
name: create gdal layer
2527
command: |

base/gdal3.0/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ RUN cd /tmp/gdal \
206206
--with-xml2 \
207207
--with-webp=$PREFIX \
208208
--with-zstd=$PREFIX \
209-
--without-bsb \
209+
--disable-driver-bsb \
210210
--without-cfitsio \
211211
--without-ecw \
212212
--without-fme \

base/gdal3.1/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,10 @@ RUN mkdir /tmp/gdal \
180180
&& curl -sfL https://github.com/OSGeo/gdal/archive/master.tar.gz | tar zxf - -C /tmp/gdal --strip-components=2
181181
#&& curl -sfL https://github.com/OSGeo/gdal/archive/release/3.1.tar.gz | tar zxf - -C /tmp/gdal --strip-components=2
182182

183+
183184
RUN cd /tmp/gdal \
184185
&& touch config.rpath \
185-
&& LDFLAGS="-Wl,-rpath,'\$\$ORIGIN'" CFLAGS="-O2 -Wl,-S" CXXFLAGS="-O2 -Wl,-S" ./configure \
186+
&& LIBXML2_CFLAGS=$(xml2-config --cflags) LIBXML2_LIBS=$(xml2-config --libs) LDFLAGS="-Wl,-rpath,'\$\$ORIGIN'" CFLAGS="-O2 -Wl,-S" CXXFLAGS="-O2 -Wl,-S" ./configure \
186187
--disable-debug \
187188
--enable-lto \
188189
--prefix=$PREFIX \
@@ -204,10 +205,10 @@ RUN cd /tmp/gdal \
204205
--with-png \
205206
--with-proj=$PREFIX \
206207
--with-sqlite3=$PREFIX \
207-
--with-xml2 \
208+
--with-xml2=yes \
208209
--with-webp=$PREFIX \
209210
--with-zstd=$PREFIX \
210-
--without-bsb \
211+
--disable-driver-bsb \
211212
--without-cfitsio \
212213
--without-ecw \
213214
--without-fme \

tests/tests.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version=$(gdal-config --version)
44
echo Running tests for GDAL ${version}
55

66
if [[ ! "$(gdal-config --prefix | grep $PREFIX)" ]]; then echo "NOK" && exit 1; fi
7-
if [[ ! "$(gdal-config --version | grep $GDALVERSION)" ]]; then echo "NOK" && exit 1; fi
87
if [[ ! "$(gdal-config --formats | grep 'openjpeg')" ]]; then echo "openjpeg NOK" && exit 1; fi
98
if [[ ! "$(gdal-config --formats | grep 'gtiff')" ]]; then echo "gtiff NOK" && exit 1; fi
109
if [[ ! "$(gdal-config --formats | grep 'mbtiles')" ]]; then echo "mbtiles NOK" && exit 1; fi

0 commit comments

Comments
 (0)