stages:
- build
- test
build_job1:
stage: build
script:
- echo "this is develop"
only:
refs:
- develop
build_job2:
stage: build
script:
- echo "this is master"
only:
refs:
- master
test_job:
stage: test
script:
- echo "test"
$ git push -u origin develop

なるほどー