.travis.yml 1.3 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
  # On Linux we install latest OpenJDK 1.8 from Ubuntu repositories
  - name: Linux x86_64
    arch: amd64
19 20
#  - name: Linux aarch64
#    arch: arm64
21

22 23 24
cache:
  directories:
    - $HOME/.m2/repository
25

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
install: |
33
  if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
34 35 36 37 38
    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
39

40 41 42
before_script:
  - java -version
  - mvn -version
43 44
  - ulimit -c unlimited

45
script:
46
  - mvn verify -DskipTests
V
vongosling 已提交
47
  - travis_retry mvn -B clean apache-rat:check
V
vongosling 已提交
48
  - travis_retry mvn -B package jacoco:report coveralls:report
V
vongosling 已提交
49 50

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