Skip to content

Commit

Permalink
try to configure travis for geonetwork legacy 2.6.4 version
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Nov 11, 2019
1 parent 7deac37 commit caba257
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ matrix:
-d -p "8080:8080"
geonetwork:3.2.2
bash -c 'export CATALINA_OPTS="$CATALINA_OPTS -Dgeonetwork.jeeves.configuration.overrides.file=/etc/geonetwork/config-view-service-override.xml";/entrypoint.sh catalina.sh run'
#GeoNetwork 3.0.5
- name: "GeoNetwork 3.0.5"
os: linux
services: docker
Expand All @@ -110,9 +111,24 @@ matrix:
- sudo apt-get install --yes libudunits2-dev libproj-dev libgeos-dev libgdal-dev
- Rscript -e 'update.packages(ask = FALSE)'
- docker run --name geonetwork -d -p 8080:8080 pobsteta/docker-geonetwork:3.0.5



#GeoNetwork 2.6.4
- name: "GeoNetwork 2.6.4"
os: linux
services: docker
apt_packages: libxml2-dev
env:
- GN_VERSION=2.6.4
before_install:
# mainly for installing sf (which requires units/rgeos/rgdal)
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
- sudo apt-get --yes --force-yes update -qq
- sudo apt-get install --yes libudunits2-dev libproj-dev libgeos-dev libgdal-dev
- Rscript -e 'update.packages(ask = FALSE)'
- docker run
-v $TRAVIS_BUILD_DIR/tests/resources/config-view-service-override-legacy.xml:/etc/geonetwork/config-view-service-override.xml
-d -p "8080:8080"
juanluisrp/geonetwork-legacy:2.6.4
bash -c 'export CATALINA_OPTS="$CATALINA_OPTS -Dgeonetwork.jeeves.configuration.overrides.file=/etc/geonetwork/config-view-service-override.xml";/entrypoint.sh catalina.sh run'


after_script:
Expand Down
7 changes: 7 additions & 0 deletions tests/resources/config-view-service-override-legacy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<overrides xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="config-overrides.xsd">
<file name=".*/WEB-INF/config.xml">
<replaceAtt xpath="services/service[@name='xml.metadata.get']/class/param[@name='skipInfo']"
attName="value" value="n"/>
</file>
</overrides>

0 comments on commit caba257

Please sign in to comment.