Shopify / pyoozie

Library for querying and scheduling with Apache Oozie
https://py-oozie.readthedocs.io
MIT License
11 stars 12 forks source link

Update travis.yml so builds pass #82

Closed evadb closed 4 years ago

evadb commented 4 years ago

Between the last build and now, Trusty was EOL'd and so all builds in TravisCI are now done on Xenial by default. The default Java version installed with Xenial does not agree with our testing library (default before was 8, now it's 11), so this pr fixes it by explicitly telling TravisCI to run our build on Trusty. Also I removed the openjdk7 install step since it was unnecessary (Trusty has 8 preinstalled and used by default which works fine).

I did investigate making the build work on Xenial but ran into frustrating issues with Java versioning. Tl;dr it builds with java 11 by default, and the jdk_switcher tool they provide doesn't come included in the java 11 build, and you can only specify a different java default with the jdk key in the yml, but that's only read if your language is set to java which breaks all the python stuff.... so this seems like the best/easiest solution