travis: move package installation to yml script

This commit is contained in:
Sarah Hoffmann 2019-01-30 21:23:30 +01:00
parent 57ca1e0cf6
commit cd03e9977d
2 changed files with 26 additions and 10 deletions

View File

@ -6,8 +6,33 @@ python:
- "3.6"
addons:
postgresql: "9.6"
apt:
packages:
- libboost-dev
- libboost-system-dev
- libboost-filesystem-dev
- libexpat1-dev
- zlib1g-dev
- libxml2-dev
- libbz2-dev
- libpq-dev
- libgeos-c1
- libgeos++-dev
- libproj-dev
- postgresql-server-dev-9.6
- postgresql-9.6-postgis-2.3
- postgresql-contrib-9.6
- apache2
- php5
- php5-pgsql
- php5-intl
- php-pear
- python3-dev
- python3-pip
- python3-psycopg2
- php5-cgi
git:
depth: 3
depth: 1
env:
- TEST_SUITE=tests
- TEST_SUITE=monaco

View File

@ -11,15 +11,6 @@
# Travis has a 4 MB, 10000 line output limit, so where possible we run script --quiet
sudo apt-get update -qq
sudo apt-get install -y -qq libboost-dev libboost-system-dev \
libboost-filesystem-dev libexpat1-dev zlib1g-dev libxml2-dev\
libbz2-dev libpq-dev libgeos-c1 libgeos++-dev libproj-dev \
postgresql-server-dev-9.6 postgresql-9.6-postgis-2.3 postgresql-contrib-9.6 \
apache2 php5 php5-pgsql php5-intl php-pear
sudo apt-get install -y -qq python3-dev python3-pip python3-psycopg2 php5-cgi
pip3 install --quiet behave nose pytidylib psycopg2-binary
# Travis uses phpenv to support multiple PHP versions. We need to make sure