Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 49 lines (41 sloc) 1017 Bytes
#!/bin/ash
# Builds and tests PDAL
gcc --version
g++ --version
cd /pdal
mkdir -p _build || exit 1
cd _build || exit 1
cmake .. \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_PLUGIN_PYTHON=ON \
-DBUILD_PLUGIN_CPD=ON \
-DBUILD_PLUGIN_GREYHOUND=ON \
-DBUILD_PLUGIN_I3S=ON \
-DBUILD_PLUGIN_NITF=ON \
-DBUILD_PLUGIN_ICEBRIDGE=ON \
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \
-DBUILD_PGPOINTCLOUD_TESTS=OFF \
-DBUILD_PLUGIN_SQLITE=ON \
-DWITH_LASZIP=ON \
-DWITH_LAZPERF=ON \
-DWITH_TESTS=ON
ninja -v
ctest -V
ninja install
cd /
# Python extension testing
pip3 install packaging cython
git clone https://github.com/PDAL/python.git pdal-python
cd pdal-python
git checkout 2.0.0
python3 setup.py build
PDAL_TEST_DIR=/pdal/_build/test python3 setup.py test
for EXAMPLE in writing writing-filter writing-kernel writing-reader writing-writer
do
cd /pdal/examples/$EXAMPLE
mkdir -p _build || exit 1
cd _build || exit 1
cmake -G "Ninja" .. && \
ninja
done