-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copyright travis job improved (#365)
* Copyright plugin version fix. Printing of incorrect copyrights improved. Signed-off-by: David Kral <david.k.kral@oracle.com> * Suggestions of aguibert according to copyright implemented. Signed-off-by: David Kral <david.k.kral@oracle.com>
- Loading branch information
Showing
4 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash -x | ||
# | ||
# 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 | ||
# | ||
|
||
die(){ echo "${1}" ; exit 1 ;} | ||
|
||
readonly RESULT_FILE="copyright-check.txt" | ||
|
||
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" |
0
tck.sh → etc/tck.sh
100755 → 100644
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters