Skip to content

Commit

Permalink
Add script for running all delivery checks
Browse files Browse the repository at this point in the history
  • Loading branch information
aguibert committed Nov 26, 2019
1 parent d028cd9 commit efd41e6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
5 changes: 3 additions & 2 deletions etc/copyright.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@

die(){ echo "${1}" ; exit 1 ;}

readonly RESULT_FILE="copyright-check.txt"
readonly RESULT_FILE="target/copyright-check.txt"
mkdir target

mvn -q org.glassfish.copyright:glassfish-copyright-maven-plugin:copyright \
> ${RESULT_FILE} || (cat ${RESULT_FILE}; die "Error running the Maven command")

grep -i "copyright" ${RESULT_FILE} \
&& die "COPYRIGHT ERROR" || echo "COPYRIGHT OK"
&& die "COPYRIGHT ERROR" || echo "COPYRIGHT OK"
17 changes: 17 additions & 0 deletions etc/delivery-checks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
#
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0,
# or the Eclipse Distribution License v. 1.0 which is available at
# http://www.eclipse.org/org/documents/edl-v10.php.
#
# SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
#

mvn checkstyle:checkstyle && \
etc/copyright.sh && \
echo "Completed normally"

Empty file modified etc/tck.sh
100644 → 100755
Empty file.

0 comments on commit efd41e6

Please sign in to comment.