Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 39C5C200CA3 for ; Thu, 1 Jun 2017 22:59:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3854E160BDF; Thu, 1 Jun 2017 20:59:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 80DC6160BC1 for ; Thu, 1 Jun 2017 22:59:48 +0200 (CEST) Received: (qmail 74743 invoked by uid 500); 1 Jun 2017 20:59:47 -0000 Mailing-List: contact commits-help@bookkeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bookkeeper-dev@bookkeeper.apache.org Delivered-To: mailing list commits@bookkeeper.apache.org Received: (qmail 74734 invoked by uid 99); 1 Jun 2017 20:59:47 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2017 20:59:47 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 86A78DFB8A; Thu, 1 Jun 2017 20:59:47 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sijie@apache.org To: commits@bookkeeper.apache.org Message-Id: <6791527376d046f7b7dafe8ecebbdabd@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: bookkeeper git commit: BOOKKEEPER-989: Enable Travis CI for Apache BookKeeper Date: Thu, 1 Jun 2017 20:59:47 +0000 (UTC) archived-at: Thu, 01 Jun 2017 20:59:49 -0000 Repository: bookkeeper Updated Branches: refs/heads/master 5c81acacc -> 55d1dc45c BOOKKEEPER-989: Enable Travis CI for Apache BookKeeper Author: Sijie Guo Reviewers: Enrico Olivelli , Jia Zhai , Matteo Merli Closes #168 from sijie/enable_travis_ci Project: http://git-wip-us.apache.org/repos/asf/bookkeeper/repo Commit: http://git-wip-us.apache.org/repos/asf/bookkeeper/commit/55d1dc45 Tree: http://git-wip-us.apache.org/repos/asf/bookkeeper/tree/55d1dc45 Diff: http://git-wip-us.apache.org/repos/asf/bookkeeper/diff/55d1dc45 Branch: refs/heads/master Commit: 55d1dc45c4761f150c59a34b94d21e39e69f872c Parents: 5c81aca Author: Sijie Guo Authored: Thu Jun 1 13:59:44 2017 -0700 Committer: Sijie Guo Committed: Thu Jun 1 13:59:44 2017 -0700 ---------------------------------------------------------------------- .travis.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ dev/ticktoc.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bookkeeper/blob/55d1dc45/.travis.yml ---------------------------------------------------------------------- diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..bea17d5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,43 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +language: java + +# blacklist +branches: + except: + - asf-site + - gh-pages + +matrix: + include: + - os: osx + osx_image: xcode8 + - os: linux + env: CUSTOM_JDK="oraclejdk8" + +before_install: + - echo "MAVEN_OPTS='-Xmx3072m -XX:MaxPermSize=512m'" > ~/.mavenrc + - 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 + +script: + - travis_retry mvn --batch-mode clean apache-rat:check compile findbugs:check +# Disabled the tests here. Since tests are running much slower on Travis than on Jenkins +# - ./dev/ticktoc.sh "mvn --batch-mode clean package" + +cache: + directories: + - $HOME/.m2 http://git-wip-us.apache.org/repos/asf/bookkeeper/blob/55d1dc45/dev/ticktoc.sh ---------------------------------------------------------------------- diff --git a/dev/ticktoc.sh b/dev/ticktoc.sh new file mode 100755 index 0000000..7903905 --- /dev/null +++ b/dev/ticktoc.sh @@ -0,0 +1,44 @@ +#!/usr/bin/env bash + +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# Script from https://github.com/travis-ci/travis-ci/issues/4190 + +set -e +set -u + +command=$1 + +# launch command in the background +${command} & + +# ping every second +seconds=0 +limit=40*60 +while kill -0 $! >/dev/null 2>&1; +do + echo -n -e " \b" # never leave evidence + + if [ $seconds == $limit ]; then + break; + fi + + seconds=$((seconds + 1)) + + sleep 1 +done