docs/14_Others/代码实践/how_to_use_ci_result.md
In Apollo, whether a PR can be merged depends on CI result and CLA.
Apollo CI will run the following steps:
So it's recommended that the following commands should be run before commiting your code.
./apollo.sh lint
./apollo.sh build
./apollo.sh test
When your PR your PR got blocked by CI, you can click Details
Now you are in our CI system, enter Build Log to see detailed fail log.
This is due to lint error. Apollo adopted Google coding style, so the header files shoud be in the suggested order. If you can't find the suggestion, please turn the log up and seek carefully.
This is due to a unit test failure. You can correct the unit test according to
the log. Especially when timeout happens, you can try changing the size filed
in BUILD from small to medium or large, hope it works.
If more complicated situation happens, please feel free to comment in your PR.