You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by hu...@apache.org on 2022/03/29 04:31:39 UTC
[rocketmq-mqtt] 11/43: add .travis.yaml
This is an automated email from the ASF dual-hosted git repository.
huzongtang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/rocketmq-mqtt.git
commit 8ec77fd28283f300e5873e9c9bad8bc19a8fc46a
Author: tianliuliu <64...@qq.com>
AuthorDate: Wed Mar 9 17:39:00 2022 +0800
add .travis.yaml
---
.travis.yaml | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/.travis.yaml b/.travis.yaml
new file mode 100644
index 0000000..6e09446
--- /dev/null
+++ b/.travis.yaml
@@ -0,0 +1,22 @@
+dist: trusty
+
+language: java
+
+matrix:
+ include:
+ # On OSX, run with default JDK only.
+ # - os: osx
+ # On Linux, run with specific JDKs only.
+ - os: linux
+ env: CUSTOM_JDK="oraclejdk8"
+
+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 clean install
+after_success:
+ - bash <(curl -s https://codecov.io/bash) -t 11a6acce-59a1-4586-9bf6-164878d045cf || echo 'Codecov failed to upload'
\ No newline at end of file