Merge pull request #3245 from tfmorris/3208-travis-mac

Travis CI build config changes
This commit is contained in:
Tom Morris 2020-10-02 15:54:10 -04:00 committed by GitHub
commit 73e82a47d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,11 +4,20 @@ dist: bionic
jobs: jobs:
include: include:
- dist: trusty # Fastest build first - dist: trusty # Fastest build first & for all builds
jdk: oraclejdk8 # Trusty default jdk: oraclejdk8 # Trusty default
- jdk: openjdk11 # Bionic default # Full matrix only for merges to master or anything to do with release branches e.g. v3.5
- jdk: openjdk13 - if: (branch = master AND type != pull_request) OR branch ~= /^v\d\.\d.*/
- os: osx jdk: openjdk11 # Bionic default
- if: branch = master AND type != pull_request OR branch ~= /^v\d\.\d.*/
jdk: openjdk12
dist: xenial # just for a little variety
- if: branch = master AND type != pull_request OR branch ~= /^v\d\.\d.*/
jdk: openjdk13
- if: branch = master AND type != pull_request OR branch ~= /^v\d\.\d.*/
jdk: openjdk14 # replacement for OS X Java 14 build
- if: branch = master AND type != pull_request OR branch ~= /^v\d\.\d.*/
os: osx
osx_image: xcode11.6 # macOS 10.15.4, Oracle JDK 14.0.1 osx_image: xcode11.6 # macOS 10.15.4, Oracle JDK 14.0.1
language: java language: java
services: # not supported on os x services: # not supported on os x
@ -30,21 +39,14 @@ jobs:
- psql -c 'CREATE DATABASE test_db;' -U postgres - psql -c 'CREATE DATABASE test_db;' -U postgres
- psql -U postgres test_db < extensions/database/tests/conf/travis-pgsql.sql - psql -U postgres test_db < extensions/database/tests/conf/travis-pgsql.sql
- cp extensions/database/tests/conf/travis_tests.xml extensions/database/tests/conf/tests.xml - cp extensions/database/tests/conf/travis_tests.xml extensions/database/tests/conf/tests.xml
- jdk: openjdk12 - if: branch = master AND type != pull_request OR branch ~= /^v\d\.\d.*/
dist: xenial # just for a little variety jdk: oraclejdk-ea
# Jacoco doesn't work with Java 16 and this workaround doesn't work - if: branch = master AND type != pull_request OR branch ~= /^v\d\.\d.*/
# - jdk: oraclejdk-ea jdk: openjdk-ea
# script: mvn test
# after_success: mvn prepare-package -DskipTests=true
# - jdk: openjdk-ea
# script: mvn test
# after_success: mvn prepare-package -DskipTests=true
allow_failures: allow_failures:
- os: osx - os: osx
- jdk: openjdk-ea - jdk: openjdk-ea
- jdk: oraclejdk-ea - jdk: oraclejdk-ea
# JDKs below need to be installed and installation fails frequently
- jdk: openjdk13
addons: addons:
mariadb: '10.3' mariadb: '10.3'