lee-seul / auto-push-code

git local repository에서 코드가 변경되면 자동으로 test 후 push 하는 shell script 코드

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

auto-push-code

Git Repository에 있는 코드 중 변경 사항이 발견되면 해당 변경 사항을 자동으로 push함

해당 소스 파일은 pytest를 통해 자동 테스트도 포함되어 있어, 로컬에서 의도대로 실행되지 않을 수 있음

이 때에는 auto-test-push.sh의 12번째 줄 python3 -m pytest --cov=.을 주석 처리한 다음 실행하면 됨

추가로 auto-test-push.sh만을 실행할 경우 파라메타로 commit 메세지를 추가할 수 있음


커밋 메세지에는 해당 커밋이 뭘한 것인지를 알 수 있어야 하므로 커밋 메세지 부분을 조금 더 개발하거나 auto-test-push.sh만을 단독으로 사용하기를 권한다

About

git local repository에서 코드가 변경되면 자동으로 test 후 push 하는 shell script 코드

License:Apache License 2.0


Languages

Language:Shell 100.0%