File: linux.yml

package info (click to toggle)
pdal 2.2.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 229,252 kB
  • sloc: cpp: 489,801; python: 5,398; xml: 2,382; sh: 827; makefile: 628; javascript: 397; sql: 26; perl: 19
file content (72 lines) | stat: -rw-r--r-- 1,921 bytes parent folder | download
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# -*- mode: yaml -*-

jobs:
- job: linux
  pool:
    vmImage: ubuntu-16.04
  container:
      image: pdal/ubuntubase:latest
      options: --privileged
  timeoutInMinutes: 60
  steps:
  - script: |
      echo "Current directory:" `pwd`
      . /opt/conda/etc/profile.d/conda.sh
      conda activate pdal
      mkdir build
      cd build
      CC=gcc-6 CXX=g++-6 \
        cmake .. \
        -G Ninja \
        -DCMAKE_BUILD_TYPE=Debug \
        -DBUILD_PLUGIN_CPD=ON \
        -DCMAKE_INSTALL_PREFIX=`pwd`/../install \
        -DBUILD_PLUGIN_I3S=ON \
        -DBUILD_PLUGIN_NITF=ON \
        -DBUILD_PLUGIN_TILEDB=ON \
        -DBUILD_PLUGIN_ICEBRIDGE=ON \
        -DBUILD_PLUGIN_HDF=ON \
        -DBUILD_PLUGIN_PGPOINTCLOUD=ON \
        -DBUILD_PLUGIN_E57=ON \
        -DBUILD_PGPOINTCLOUD_TESTS=OFF \
        -DWITH_LAZPERF=ON \
        -DWITH_LASZIP=ON \
        -DWITH_ZSTD=ON \
        -DWITH_ZLIB=ON \
        -DWITH_TESTS=ON
    displayName: 'CMake'
  - script: |
      . /opt/conda/etc/profile.d/conda.sh
      conda activate pdal
      cd build
      ninja
    displayName: 'Build'
  - script: |
      . /opt/conda/etc/profile.d/conda.sh
      conda activate pdal
      cd build
      ctest -V
    displayName: 'Test'
  - script: |
      . /opt/conda/etc/profile.d/conda.sh
      conda activate pdal
      export PDAL_TEST_DIR=`pwd`/test
      export INSTALL_DIR=`pwd`/install
      export PATH=$PATH:$INSTALL_DIR/bin
      cd build
      ls build/lib/*
      ninja install
  - script: |
      . /opt/conda/etc/profile.d/conda.sh
      conda activate pdal
      export BASE=`pwd`
      for EXAMPLE in writing writing-filter writing-kernel \
          writing-reader writing-writer
      do
          cd $BASE/examples/$EXAMPLE
          mkdir -p _build || exit 1
          cd _build || exit 1
          cmake -G "Ninja" .. -DPDAL_DIR=$BASE/install/lib/cmake/PDAL && ninja
      done
    displayName: 'Examples'