Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify travis.yml to use xenial distribution #546

Open
wants to merge 6 commits into
base: 2.8.x-qgis_server
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ sudo: required

language: python

dist: xenial

python:
- "2.7"

Expand All @@ -16,7 +18,7 @@ addons:
postgresql: 9.6
apt:
packages:
- postgresql-9.6-postgis-2.3
- postgresql-9.6-postgis-2.4

env:
- BACKEND: 'geonode.geoserver'
Expand Down Expand Up @@ -48,16 +50,20 @@ before_install:

install:
- sudo apt-get -qq -y update
- sudo apt-get install -y libgdal1h python-gdal gdal-bin spatialite-bin
- sudo apt-get install -y python-virtualenv python-imaging python-lxml python-pyproj python-shapely python-nose python-httplib2 python-httplib2 gettext
- sudo apt-get install -y python-dev libxml2 libxml2-dev libxslt1-dev zlib1g-dev libjpeg-dev libpq-dev libgdal-dev git default-jdk
- sudo add-apt-repository -y ppa:webupd8team/java
- sudo apt-get install -y libgdal1i python-gdal gdal-bin spatialite-bin;
- sudo apt-get install -y python-virtualenv python-imaging python-lxml python-pyproj python-shapely python-httplib2 python-httplib2 gettext;
- sudo apt-get install -y python-dev libxml2 libxml2-dev libxslt1-dev zlib1g-dev libjpeg-dev libpq-dev libgdal-dev git default-jdk;
- sudo add-apt-repository -y ppa:webupd8team/java; sudo apt update;
- echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections;
- echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections;
- sudo apt install -y openjdk-8-jre openjdk-8-jdk ant maven;
- sudo update-java-alternatives --set java-1.8.0-openjdk-amd64;
- export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")
- export PATH=$JAVA_HOME'bin/java':$PATH
- sudo apt-get update
- sudo apt-get install -y --force-yes oracle-java8-set-default ant maven --no-install-recommends
- sudo update-java-alternatives --set java-8-oracle
- pip install -r requirements.txt --no-deps
- pip install -e .
- pip install pygdal==`gdal-config --version`
- pip install pygdal==`gdal-config --version`.*;
- pip install codecov

before_script:
Expand Down