From 770ac5ec37b1635fec819188d8165e3ef52252c3 Mon Sep 17 00:00:00 2001 From: Rizky Maulana Nugraha Date: Thu, 4 Apr 2019 13:53:28 +0700 Subject: [PATCH 1/6] Modify travis.yml to use xenial distribution --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index aeb2347a607..3cd52acfa85 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,8 @@ sudo: required language: python +dist: xenial + python: - "2.7" From 3e7c969b7cc3e42d63b58b11782fe47cc741b518 Mon Sep 17 00:00:00 2001 From: Rizky Maulana Nugraha Date: Thu, 4 Apr 2019 14:29:54 +0700 Subject: [PATCH 2/6] Change libgdal installation --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3cd52acfa85..e85c3306818 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,7 +50,7 @@ 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 libgdal1i 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 From 30ac7ed61a2f471a12144cc58f1a824447f7acfb Mon Sep 17 00:00:00 2001 From: Rizky Maulana Nugraha Date: Fri, 5 Apr 2019 01:25:51 +0700 Subject: [PATCH 3/6] Change travis install command --- .travis.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index e85c3306818..ba13370079a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,12 +51,16 @@ before_install: install: - sudo apt-get -qq -y update - 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-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 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 oracle-java8-set-default ant maven; + - sudo update-java-alternatives --set java-8-oracle; + - 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` From a19609835852e644bc95b34dec9286f10747fb8a Mon Sep 17 00:00:00 2001 From: Rizky Maulana Nugraha Date: Fri, 5 Apr 2019 15:42:26 +0700 Subject: [PATCH 4/6] Change pygdal version in travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ba13370079a..cc075f4ce0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -63,7 +63,7 @@ install: - sudo apt-get update - 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: From 93c4ed01f290ed8284e0d6d90efee72355a2fe83 Mon Sep 17 00:00:00 2001 From: Rizky Maulana Nugraha Date: Fri, 5 Apr 2019 16:11:57 +0700 Subject: [PATCH 5/6] Change postgis extension in travis to 2.4 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cc075f4ce0c..60df497144d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,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' From 04ca8d7e2d23de5d58209d118590e5f08003258b Mon Sep 17 00:00:00 2001 From: Rizky Maulana Nugraha Date: Tue, 9 Jul 2019 15:42:24 +0700 Subject: [PATCH 6/6] Change Java version to openjdk-8 --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 60df497144d..10d545071bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -56,8 +56,8 @@ install: - 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 oracle-java8-set-default ant maven; - - sudo update-java-alternatives --set java-8-oracle; + - 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