-
Notifications
You must be signed in to change notification settings - Fork 441
/
before_install.sh
executable file
·72 lines (64 loc) · 1.92 KB
/
before_install.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash -e
# Installs requirements for PDAL
source ./scripts/ci/common.sh
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 16126D3A3E5C1192
sudo mv /etc/apt/sources.list.d/pgdg-source.list* /tmp
sudo apt-get -qq remove postgis
sudo apt-get update -qq
sudo apt-get install software-properties-common -y
sudo apt-get install python-software-properties -y
# sudo add-apt-repository ppa:ubuntugis/ppa -y
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
if [[ $PDAL_EMBED_BOOST == "OFF" ]]
then
sudo add-apt-repository ppa:boost-latest/ppa -y
fi
sudo apt-get update -qq
# Install g++-4.8 (even if we're building clang) for updated libstdc++
sudo apt-get install g++-4.8
if [[ $PDAL_EMBED_BOOST == "OFF" ]]
then
sudo apt-get install boost1.55
fi
if [[ $PDAL_CMAKE_GENERATOR == "Ninja" ]]
then
# Need newer cmake for Ninja generator
wget http://www.cmake.org/files/v2.8/cmake-2.8.12.2.tar.gz
tar -xzf cmake-2.8.12.2.tar.gz
cd cmake-2.8.12.2
./bootstrap
make
sudo make install
cd ..
git clone https://github.com/martine/ninja.git
cd ninja
git checkout release
./bootstrap.py
sudo ln -s "$PWD/ninja" /usr/local/bin/ninja
cd ..
else
sudo apt-get install cmake
fi
if [[ $PDAL_OPTIONAL_COMPONENTS == "all" ]]
then
sudo apt-get install libgdal1h libgdal-dev libhdf5-serial-dev
sudo apt-get install \
libgdal1h \
libgdal-dev \
libhdf5-serial-dev \
libproj-dev \
libgeos++-dev \
python-numpy \
libxml2-dev \
libflann-dev \
libtiff4-dev
# install libgeotiff from sources
wget http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-1.4.0.tar.gz
tar -xzf libgeotiff-1.4.0.tar.gz
cd libgeotiff-1.4.0
./configure --prefix=/usr && make && sudo make install
cd $TRAVIS_BUILD_DIR
fi
gcc --version
clang --version