dweiss commented on PR #14764:
URL: https://github.com/apache/lucene/pull/14764#issuecomment-2991372910

   > Is it possible in Gradle to define a task that does "check -test"?
   
   This is exactly the problem - no, not really. You could hack around it by 
programmatically turning off test if 'precommit' is on start args... but it is 
really an ugly workaround for something that isn't a problem to me. You should 
run your tests before you commit so 'gradlew check' is shorter, really. If you 
insist on running without tests, exclude the ones you don't want. Also, this is 
per-project so 
   ```
   ./gradlew -p lucene/core check -x test
   ```
   
   will run all checks only for the lucene core - precommit was global 
(involved every project).
   
   > But the precommit was always an easy shortcut.
   
   len("precommit") > len("check") ? :)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to