1. 项目根目录新建gitlab-ci.yml文件
stages:
- build
- test
- deploy
build-job:
stage: build
tags:
- build
only:
- master
script:
- echo "Compiling the code..."
- echo "Compile complete."