From ad91e77d13bb9861cd1a3ece70f00f6f3b395ac1 Mon Sep 17 00:00:00 2001 From: Radim Hopp Date: Thu, 13 Feb 2020 13:39:04 +0100 Subject: [PATCH] Add "build" PR check. Signed-off-by: Radim Hopp --- .ci/cico_build_pullrequest.sh | 22 ++++++++++++++++++++++ .ci/cico_common.sh | 6 +++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .ci/cico_build_pullrequest.sh diff --git a/.ci/cico_build_pullrequest.sh b/.ci/cico_build_pullrequest.sh new file mode 100644 index 0000000000..fc46cb9b7b --- /dev/null +++ b/.ci/cico_build_pullrequest.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# Copyright (c) 2017 Red Hat, Inc. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html + +# Just a script to get and build eclipse-che locally +# please send PRs to github.com/kbsingh/build-run-che + +# update machine, get required deps in place +# this script assumes its being run on CentOS Linux 7/x86_64 + +#include common scripts +. ./.ci/cico_common.sh + +load_jenkins_vars +load_mvn_settings_gpg_key +install_deps + +DO_NOT_IGNORE_TESTS="true" +mvn_build diff --git a/.ci/cico_common.sh b/.ci/cico_common.sh index d210cbc38d..7c802d256b 100644 --- a/.ci/cico_common.sh +++ b/.ci/cico_common.sh @@ -72,7 +72,11 @@ install_deps(){ mvn_build() { set -x - scl enable rh-maven33 'mvn clean install -U -Pintegration' + if [[ $DO_NOT_IGNORE_TESTS == "true" ]]; then + scl enable rh-maven33 'mvn clean install -U -Pintegration -Dmaven.test.failure.ignore=false' + else + scl enable rh-maven33 'mvn clean install -U -Pintegration' + fi if [[ $? -eq 0 ]]; then echo 'Build Success!' else