.travis.yml 1.2 KB
Newer Older
1
dist: bionic
L
trusty  
laohu 已提交
2

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
matrix:
  include:
  # On OSX, run with default JDK only.
  # - os: osx
16 17 18 19 20 21 22 23 24 25
  # On Linux we install latest OpenJDK 1.8 from Ubuntu repositories
  - name: Linux x86_64
    arch: amd64
  - name: Linux aarch64
    arch: arm64
    
cache:
  directories:
    - $HOME/.m2/repository
    
V
vongosling 已提交
26
before_install:
27
  - lscpu
V
vongosling 已提交
28 29
  - echo 'MAVEN_OPTS="$MAVEN_OPTS -Xmx1024m -XX:MaxPermSize=512m -XX:+BytecodeVerificationLocal"' >> ~/.mavenrc
  - cat ~/.mavenrc
30
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
31

32 33 34 35 36 37 38 39 40 41 42 43
install: |
  if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then 
    sudo apt update
    sudo apt install -y openjdk-8-jdk maven
    export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-${TRAVIS_CPU_ARCH}/"
    export PATH="$JAVA_HOME/bin:/usr/share/maven/bin:$PATH"
  fi
  
before_script:
  - java -version
  - mvn -version
  
44
script:
V
vongosling 已提交
45
  - travis_retry mvn -B clean apache-rat:check
V
vongosling 已提交
46
  - travis_retry mvn -B package jacoco:report coveralls:report
V
vongosling 已提交
47 48

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