I have a codebuild process that goes through 4 stages: init, build, test, and publish. My buildspec looks like this:
init
build
test
publish