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:43 UTC
[rocketmq-mqtt] 15/43: Open travis-ci by using yml
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 20ad1009a551defaaa1c77f4761ab89b9052f78e
Author: dinglei <li...@163.com>
AuthorDate: Thu Mar 10 12:04:00 2022 +0800
Open travis-ci by using yml
open travis-ci by using yml
---
.travis.yml | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..1c8ad51
--- /dev/null
+++ b/.travis.yml
@@ -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'