.travis.yml 829 字节
Newer Older
L
trusty  
laohu 已提交
1 2
dist: trusty

V
vongosling 已提交
3 4
notifications:
  email:
V
vongosling 已提交
5
    recipients:
6
      - dev@rocketmq.apache.org
V
vongosling 已提交
7 8
  on_success: change
  on_failure: always
9 10 11

language: java

L
trusty  
laohu 已提交
12 13 14 15 16 17 18
matrix:
  include:
  # On OSX, run with default JDK only.
  # - os: osx
  # On Linux, run with specific JDKs only.
  - os: linux
    env: CUSTOM_JDK="oraclejdk8"
L
laohu 已提交
19

V
vongosling 已提交
20 21 22
before_install:
  - echo 'MAVEN_OPTS="$MAVEN_OPTS -Xmx1024m -XX:MaxPermSize=512m -XX:+BytecodeVerificationLocal"' >> ~/.mavenrc
  - cat ~/.mavenrc
L
trusty  
laohu 已提交
23 24
  - 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
25 26

script:
V
vongosling 已提交
27
  - travis_retry mvn -B clean apache-rat:check
V
vongosling 已提交
28
  - travis_retry mvn -B package jacoco:report coveralls:report
V
vongosling 已提交
29 30

after_success:
31
  - mvn clean install -Pit-test
32
  - mvn sonar:sonar -Psonar-apache