Skip to content

Commit 4cc873a

Browse files
senivamjansupol
authored andcommitted
copyright check (run maven plugin) in builds (#3899)
Signed-off-by: Maxim Nesen <[email protected]>
1 parent 3a54185 commit 4cc873a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515
matrix:
1616
- TEST_SET="-Ptravis_e2e_skip"
1717
- TEST_SET="-Ptravis_e2e"
18+
- TEST_SET="glassfish-copyright:copyright"
1819

1920
install: true
2021

travis.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ trap 'error_handler' ERR
2525
bash -c "while true; do tail -5 $BUILD_OUTPUT; sleep $PING_SLEEP; done" &
2626
PING_LOOP_PID=$!
2727

28-
mvn -e -U -B clean install $1 >> $BUILD_OUTPUT 2>&1
28+
if [ "$1" = "glassfish-copyright:copyright" ]; then
29+
mvn glassfish-copyright:copyright
30+
else
31+
mvn -e -U -B clean install $1 >> $BUILD_OUTPUT 2>&1
32+
fi
2933

3034
# The build finished without returning an error so dump a tail of the output
3135
dump_output

0 commit comments

Comments
 (0)