Skip to content

Commit

Permalink
check if modified files after update_config/supported (NVIDIA#1809)
Browse files Browse the repository at this point in the history
* check if modified files after update_config/supported

Signed-off-by: Peixin Li <pxli@nyu.edu>

* remove dummy config modified

* fix success case
  • Loading branch information
pxLi authored Feb 25, 2021
1 parent 399247b commit 07c0a1e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,23 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>if_modified_files</id>
<phase>verify</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>bash</executable>
<commandlineArgs>-c 'export MODIFIED=$(git status --porcelain | grep "^ M"); [[ -z $MODIFIED ]] &amp;&amp; exit 0 || { echo -e "found modified files during mvn verify:\n$MODIFIED"; exit 1;}'</commandlineArgs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
Expand Down

0 comments on commit 07c0a1e

Please sign in to comment.