Hey Andrea,
I just saw your changes to the .travis.yml, currently the jvm switcher is
not supported on osx causing those builds to fail.

You'll want to remove the jdk section and then add an include to build with
the non default JDK's in the matix. It will crat a build matrix with the
two default JDK's on osx and linux and the add two more builds


It would then look something like this for geotools:

sudo: false
cache:
  directories:
    - "$HOME/.m2"
language: java
script:
  - mvn -B -T2 -fae -Djava.awt.headless=true -Dall clean install
notifications:
  email: false
  on_failure: never
env: GDAL_LIBRARY_NAME=disabled_see_geot-4733
os:
  - linux
  - osx
matrix:
  allow_failures:
    - os: osx
  include:
  # additional builds on linux w/ openjdk7 and oraclejdk8
    - os: linux
     jdk: openjdk7
   - os: linux
     jdk: oraclejdk8

I just spent some time figuring this out for an entirely different project.
see:
- https://github.com/GeoDienstenCentrum/sass-maven-plugin/pull/65
- https://travis-ci.org/GeoDienstenCentrum/sass-maven-plugin/builds/75738242


HTH, Mark


2015-08-14 9:00 GMT+02:00 Andrea Aime <andrea.a...@geo-solutions.it>:

> HI,
> a few months ago I logged a request at Travis to get a OSX build
> machine. It has now arrived, activated for the GeoTools and GeoServer
> projects.
>
> Here is the mail from the Travis people:
>
>
> -----------------
>
> Hi Andrea!
>
> Just enabled the multi-os feature for both:
> https://github.com/geotools/geotools and
> https://github.com/geoserver/geoserver.
>
> Please note that this feature is currently in beta, so do let us know if
> there is anything you feel can be improved or anything you miss.
>
> Here's what you need to add in your .travis.yml: http://docs.travis
> -ci.com/user/multi-os/#Setting-.travis.yml
>
> -----------------
>
> Activation is repo specific, and back then I queued a request for those
> two repos. I don't have time right now to
> activate them, but instructions are above, if anyone wants to try
>
> Cheers
> Andrea
>
> --
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility  for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
> -------------------------------------------------------
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> GeoTools-Devel mailing list
> GeoTools-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
>


-- 
Disclaimer;
This message is just a reflection of what I thought at the time of sending.
The message may contain information that is not intended for you or that
you don't understand.
------------------------------------------------------------------------------
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to