---
title: GitLab流水线示例代码
description: "示例代码如下："
url: https://www.hikunpeng.com/document/detail/zh/nativedevp/userguide/pipeline/NativeDevelopment_0113.html
sourcePath: /source/zh/nativedevp/userguide/pipeline/NativeDevelopment_0113.html
indexId: edb66f861b703395b8ca0d5b3bc28d321cdf9ff9bb88408c70779122305fb55668
---
# GitLab流水线示例代码

示例代码如下：

```
stages:   # List of stages for jobs, and their order of execution
- build
- test
- deploy
build-job:       # This job runs in the build stage, which runs first.
stage: build
script:
- source "${HOME}"/.local/wrap-bin/devkit_NonInvasiveSwitching.sh
- cd
/home/test/buil
d
- make
tags:
- kunpeng_c_builder_bisheng_compiler # 对应gitlab-runner注册时的标签，可选择多个
```

“/home/test/build”指项目文件路径，编译命令为make，请根据实际情况进行替换。
