Remove Travis CI configuration (#1916)
* Remove .travis.yml * Update README.md to display Jenkins build status badge Signed-off-by: Wouter Born <github@maindrain.net>pull/1917/head
parent
076ac3fe15
commit
543f305969
43
.travis.yml
43
.travis.yml
|
@ -1,43 +0,0 @@
|
|||
os: linux
|
||||
dist: focal
|
||||
|
||||
language: java
|
||||
jdk: openjdk11
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.m2
|
||||
|
||||
before_install:
|
||||
- echo "MAVEN_OPTS='-Xms1g -Xmx2g'" > ~/.mavenrc
|
||||
install:
|
||||
- |
|
||||
function prevent_timeout() {
|
||||
local i=0
|
||||
while [ -e /proc/$1 ]; do
|
||||
# print zero width char every 3 minutes while building
|
||||
if [ "$i" -eq "180" ]; then printf %b '\u200b'; i=0; else i=$((i+1)); fi
|
||||
sleep 1
|
||||
done
|
||||
}
|
||||
function print_reactor_summary() {
|
||||
sed -ne '/\[INFO\] Reactor Summary.*:/,$ p' "$1" | sed 's/\[INFO\] //'
|
||||
}
|
||||
function mvnp() {
|
||||
set -o pipefail # exit build with error when pipes fail
|
||||
local command=(mvn $@)
|
||||
exec "${command[@]}" 2>&1 | # execute, redirect stderr to stdout
|
||||
tee .build.log | # write output to log
|
||||
stdbuf -oL grep -aE '^\[INFO\] Building .+ \[.+\]$' | # filter progress
|
||||
sed -uE 's/^\[INFO\] Building (.*[^ ])[ ]+\[([0-9]+\/[0-9]+)\]$/\2| \1/' | # prefix project name with progress
|
||||
sed -e :a -e 's/^.\{1,6\}|/ &/;ta' & # right align progress with padding
|
||||
local pid=$!
|
||||
prevent_timeout $pid &
|
||||
wait $pid
|
||||
}
|
||||
after_success:
|
||||
- print_reactor_summary .build.log
|
||||
after_failure:
|
||||
- tail -n 2000 .build.log
|
||||
script:
|
||||
- mvnp clean verify -B -DskipChecks
|
|
@ -1,6 +1,6 @@
|
|||
# openHAB Core
|
||||
|
||||
[![Build Status](https://travis-ci.com/openhab/openhab-core.svg)](https://travis-ci.com/openhab/openhab-core)
|
||||
[![Build Status](https://ci.openhab.org/job/openHAB-Core/badge/icon)](https://ci.openhab.org/job/openHAB-Core/)
|
||||
[![EPL-2.0](https://img.shields.io/badge/license-EPL%202-green.svg)](https://opensource.org/licenses/EPL-2.0)
|
||||
[![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=28054058)](https://www.bountysource.com/teams/openhab/issues?tracker_ids=28054058)
|
||||
|
||||
|
|
Loading…
Reference in New Issue