nacos/.travis.yml

38 lines
1017 B
YAML
Raw Normal View History

2018-07-21 00:27:23 +08:00
notifications:
email:
recipients:
2018-09-26 20:19:40 +08:00
- xchaos8@126.com
2018-07-21 00:27:23 +08:00
- nacos_dev@linux.alibaba.com
- dev-nacos@googlegroups.com
- mw_configcenter@list.alibaba-inc.com
2018-07-21 00:27:23 +08:00
on_success: change
on_failure: always
language: java
matrix:
include:
2019-06-14 17:13:47 +08:00
# On OSX, run with default JDK only.
# - os: osx
# On Linux, run with specific JDKs only.
- os: linux
env: CUSTOM_JDK="oraclejdk8"
2018-07-21 00:27:23 +08:00
2019-06-14 19:31:11 +08:00
jdk:
2019-07-02 13:28:30 +08:00
- openjdk11
2019-06-14 19:31:11 +08:00
- openjdk8
2018-07-21 00:27:23 +08:00
before_install:
- echo 'MAVEN_OPTS="$MAVEN_OPTS -Xmx1024m -XX:MaxPermSize=512m -XX:+BytecodeVerificationLocal"' >> ~/.mavenrc
- cat ~/.mavenrc
2019-06-14 19:31:11 +08:00
# - 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
2018-07-21 00:27:23 +08:00
script:
2018-11-08 15:39:07 +08:00
- mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true
2018-10-25 19:06:03 +08:00
- mvn -Prelease-nacos clean install -U
- mvn clean package -Pit-test
2018-07-21 00:27:23 +08:00
after_success:
2018-10-25 19:06:03 +08:00
- mvn clean package -Pit-test
2018-07-21 00:27:23 +08:00
- mvn sonar:sonar -Psonar-apache