浏览代码

ZOOKEEPER-3234: Add Travis-CI configuration file

Use Travis-CI in order to build ZooKeeper on multiple JDKs and run spotbugs on every supported JDK

Author: Enrico Olivelli <eolivelli@apache.org>

Reviewers: andor@apache.org

Closes #815 from eolivelli/fix/travis-2
Enrico Olivelli 6 年之前
父节点
当前提交
e556293793
共有 1 个文件被更改,包括 4 次插入13 次删除
  1. 4 13
      .travis.yml

+ 4 - 13
.travis.yml

@@ -1,23 +1,14 @@
 language: java
 sudo: false
+jdk:
+  - openjdk8
+  - openjdk11
 
 cache:
   directories:
   - "$HOME/.m2"
 
-before_script:
-  # Add an IPv6 config - see the corresponding Travis issue
-  # https://github.com/travis-ci/travis-ci/issues/8361
-  - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then 
-      sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
-      ulimit -s 1082768;
-    fi
-
-jobs:
-  include:
-  - stage: test
-    jdk: openjdk11
-    script: travis_wait 30 mvn verify -Dmaven.test.redirectTestOutputToFile=true -Dsurefire-forkcount=4
+script: mvn clean install -DskipTests spotbugs:check
 
 branches:
   only: