/
script.sh
executable file
·48 lines (41 loc) · 1017 Bytes
/
script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/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