.travis.yml 933 字节
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

12 13 14
jdk:
  - oraclejdk8

L
trusty  
laohu 已提交
15 16 17 18 19 20 21
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 已提交
22

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

script:
V
vongosling 已提交
30
  - travis_retry mvn -B clean apache-rat:check
V
vongosling 已提交
31
  - travis_retry mvn -B package jacoco:report coveralls:report
V
vongosling 已提交
32 33

after_success:
34
  - mvn clean install -Pit-test
35
  - mvn sonar:sonar -Psonar-apache
36
  - bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'