kyuubi/.travis.yml
sychen 19775883b1
[KYUUBI #3847][FOLLOWUP] Add jdbc-shaded profile to support IDE debug
### _Why are the changes needed?_
#3847

https://app.travis-ci.com/github/apache/incubator-kyuubi/jobs/590599391

```
SparkOperationSuite:
- get catalogs
- get schemas
- get tables
- get type info
- audit Kyuubi Hive JDBC connection common MetaData *** FAILED ***
  "...i Project Hive JDBC []Client" did not equal "...i Project Hive JDBC [Shaded ]Client" (SparkMetadataTests.scala:407)
  Analysis:
  "...i Project Hive JDBC []Client" -> "...i Project Hive JDBC [Shaded ]Client"
```

### _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 #3955 from cxzl25/jdbc_shaded_followup.

Closes #3847

b229ebe5 [sychen] or
921b44bf [sychen] travis -Pjdbc-shaded

Authored-by: sychen <sychen@ctrip.com>
Signed-off-by: Shaoyun Chen <csy@apache.org>
2022-12-09 20:09:50 +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 -Pjdbc-shaded"
- ./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