| # Licensed to the Apache Software Foundation (ASF) under one or more |
| # contributor license agreements. See the NOTICE file distributed with |
| # this work for additional information regarding copyright ownership. |
| # The ASF licenses this file to You under the Apache License, Version 2.0 |
| # (the "License"); you may not use this file except in compliance with |
| # the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| sudo: required |
| |
| dist: bionic |
| language: scala |
| scala: |
| - 2.12.10 |
| jdk: |
| - openjdk8 |
| |
| cache: |
| directories: |
| - $HOME/.m2 |
| |
| matrix: |
| include: |
| - name: Test Kyuubi w/ -Pspark-3.0 -Pspark-hadoop-2.7 |
| env: |
| - PROFILE="-Pspark-3.0 -Pspark-hadoop-2.7" |
| - EXCLUDE_TAGS="" |
| - name: Test Kyuubi w/ -Pspark-3.1 -Pspark-hadoop-2.7 |
| env: |
| - PROFILE="-Pspark-3.1 -Pspark-hadoop-2.7" |
| - EXCLUDE_TAGS="org.apache.kyuubi.tags.DataLakeTest" |
| - name: Test Kyuubi w/ -Pspark-3.1 -Pspark-hadoop-3.2 |
| env: |
| - PROFILE="-Pspark-3.1 -Pspark-hadoop-3.2" |
| - EXCLUDE_TAGS="org.apache.kyuubi.tags.DataLakeTest" |
| - name: Test Kyuubi w/ -Pspark-3.0 -Pspark-hadoop-2.7 by Spark 3.1 distribution |
| env: |
| - PROFILE="-Pspark-3.0 -Pspark-hadoop-2.7 -Dspark.archive.mirror=https://archive.apache.org/dist/spark/spark-3.1.1 -Dspark.archive.name=spark-3.1.1-bin-hadoop2.7.tgz" |
| - EXCLUDE_TAGS="org.apache.kyuubi.tags.DataLakeTest" |
| |
| install: |
| - mvn --version |
| |
| script: |
| - mvn clean install $PROFILE -Dmaven.plugin.scalatest.exclude.tags=$EXCLUDE_TAGS -Dmaven.javadoc.skip=true -V |
| |
| after_success: |
| - if [[ -z $EXCLUDE_TAGS ]]; then bash <(curl -s https://codecov.io/bash); fi |
| |
| after_failure: |
| - echo "==== Build with $PROFILE FAILED ====" |
| - for log in `find * -name "kyuubi-spark-sql-engine.log*"`; do echo "=========$log========="; cat $log; done |
| - for log in `find * -name "unit-tests.log"`; do echo "=========$log========="; cat $log; done |