kyuubi/.travis.yml
Cheng Pan 9d4d2948bb
[KYUUBI #3199] [BUILD] Fix travis JAVA_HOME
### _Why are the changes needed?_

Ref https://github.com/apache/rocketmq/blob/develop/.travis.yml

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #3199 from pan3793/travis-2.

Closes #3199

60dd21b3 [Cheng Pan] [BUILD] Fix travis JAVA_HOME

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
2022-08-08 20:31:42 +08:00

72 lines
2.6 KiB
YAML

#
# 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: focal
arch: arm64-graviton2
group: edge
virt: vm
env: SPARK_LOCAL_IP=localhost
branches:
only:
- master
language: java
matrix:
include:
- name: Build Kyuubi common on Linux ARM64
script:
- ./build/mvn test $MVN_ARGS -pl kyuubi-common,kyuubi-zookeeper,kyuubi-ha,kyuubi-ctl,kyuubi-metrics,kyuubi-hive-beeline,kyuubi-hive-jdbc,extensions/server/kyuubi-server-plugin -am
- name: Build Kyuubi Flink on Linux ARM64
script:
- ./build/mvn test $MVN_ARGS -pl externals/kyuubi-flink-sql-engine,integration-tests/kyuubi-flink-it
- name: Build Kyuubi Spark on Linux ARM64
script:
- ./build/mvn test $MVN_ARGS -pl externals/kyuubi-spark-sql-engine
- ./build/mvn test $MVN_ARGS -pl kyuubi-server -DwildcardSuites=org.apache.kyuubi.operation.KyuubiOperationPerUserSuite
- name: Build Kyuubi Trino on Linux ARM64
script:
- ./build/mvn test $MVN_ARGS -pl externals/kyuubi-trino-engine,integration-tests/kyuubi-trino-it
- name: Build Kyuubi Hive on Linux ARM64
script:
- ./build/mvn test $MVN_ARGS -pl externals/kyuubi-hive-sql-engine,integration-tests/kyuubi-hive-it
cache:
directories:
- $HOME/.m2
install:
- sudo apt update
- sudo apt install -y openjdk-8-jdk
- export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-${TRAVIS_CPU_ARCH}"
- export PATH="$JAVA_HOME/bin:/usr/share/maven/bin:$PATH"
- ./build/mvn --version
before_script:
- export MVN_ARGS="-Dmaven.javadoc.skip=true -Drat.skip=true -Dscalastyle.skip=true -Dspotless.check.skip -V -B -ntp -Dorg.slf4j.simpleLogger.defaultLogLevel=warn"
- ./build/mvn clean install -DskipTests $MVN_ARGS
after_success:
- echo "Travis exited with ${TRAVIS_TEST_RESULT}"
after_failure:
- echo "Travis exited with ${TRAVIS_TEST_RESULT}"
- for log in `find * -name "unit-tests.log"`; do echo "=========$log========="; grep "ERROR" $log -A 100 -B 5; done