6 Commits

Author SHA1 Message Date
dd8b19f90e 更新 main.c
Signed-off-by: a1012112796 <1012112796@qq.com>
2023-06-02 10:02:44 +08:00
767ca5dadd test promote
Signed-off-by: a1012112796 <1012112796@qq.com>
2021-05-15 11:00:09 +08:00
7038e7ff5d Merge branch 'master' into a1012112796-patch-1 2020-12-30 20:10:57 +08:00
b4130d5cab 更新 'README.org' 2020-12-22 22:08:31 +08:00
2503225ce1 添加 'README.org' 2020-12-22 22:06:01 +08:00
7389f8cbcd 添加 'add.c' 2020-06-04 17:50:50 +08:00
2 changed files with 40 additions and 19 deletions
+34 -18
View File
@@ -1,18 +1,34 @@
---
kind: pipeline
type: docker
name: build_linux_test
trigger:
event:
- pull_request
- push
steps:
- name: build_test
image: gcc
commands:
- echo "start test"
- gcc main.c -o test
- ./test
---
kind: pipeline
type: docker
name: build_linux_test
trigger:
event:
- pull_request
- push
steps:
- name: build_test
image: gcc
commands:
- echo "start test"
- gcc main.c -o test
- ./test
---
kind: pipeline
type: docker
name: promote_test
trigger:
event:
- promote
target:
- production
steps:
- name: test
image: gcc
commands:
- echo "start test"
+6 -1
View File
@@ -20,4 +20,9 @@ int main(int argc, char** argv)
int add(int a, int b)
{
return a + b;
}
}
int a1()
{
return 1;
}