You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by du...@apache.org on 2022/07/31 06:47:15 UTC
[rocketmq-schema-registry] 28/34: add build check traivs ci
This is an automated email from the ASF dual-hosted git repository.
duhengforever pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/rocketmq-schema-registry.git
commit 589284e6018cc5b8fe7bed558d01d706016a6d74
Author: duhenglucky <du...@apache.org>
AuthorDate: Sat Jul 30 16:24:40 2022 +0800
add build check traivs ci
---
.travis.yml | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..7a7a866
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,22 @@
+dist: trusty
+
+language: java
+
+jdk:
+ - oraclejdk8
+ - oraclejdk9
+ - oraclejdk11
+ - openjdk8
+
+before_install:
+ - echo 'MAVEN_OPTS="$MAVEN_OPTS -Xmx1024m -XX:MaxPermSize=512m -XX:+BytecodeVerificationLocal"' >> ~/.mavenrc
+ - cat ~/.mavenrc
+ - if [ "$TRAVIS_OS_NAME" == "osx" ]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
+ - if [ "$TRAVIS_OS_NAME" == "linux" ]; then jdk_switcher use "$CUSTOM_JDK"; fi
+
+script:
+ - travis_retry mvn -B clean apache-rat:check
+ - travis_retry mvn -B clean install cobertura:cobertura
+
+after_success:
+ - bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'
\ No newline at end of file