commit | 7ef9330b2be30110de6b0a8dc98daea562ef3e13 | [log] [tgz] |
---|---|---|
author | Lei YU <mine260309@gmail.com> | Wed Nov 06 13:53:21 2019 +0800 |
committer | Andrew Geissler <geissonator@yahoo.com> | Tue Nov 12 13:18:05 2019 +0000 |
tree | 15c8b5604e582cc92225c5be6d87d1dd7a9e0c08 | |
parent | 0204beca13fb57916fdf4b67cb6ebc395390527a [diff] |
Add --noformat option for unit test The run-unit-test-docker.sh and unit-test.py will run format-code.sh to check the code format, and break when the code is not formatted correctly. For local-ci, this is unecessary because the code not "git add" or not committed is treated as not-formatted and will break. Adding NO_FORMAT_CODE option to make the unit test skip formatting the code, so that one could write code in local repo, run the local-ci without having to git add ro commit the changes. Tested: Run run-unit-test-docker.sh as before, verify the format-code.sh is invoked; Run 'NO_FORMAT_CODE=1 run-unit-test-docker.sh', verify the format-code.sh is not invoked. Signed-off-by: Lei YU <mine260309@gmail.com> Change-Id: Ib3b6cf34390c91d551bc14613e925b8e51a3065f
Build script for CI jobs in Jenkins.