1 Commits

Author SHA1 Message Date
cb61b09bcd 更新 'README.md' 2021-03-29 10:51:45 +08:00
3 changed files with 22 additions and 41 deletions

View File

@@ -1,34 +1,18 @@
---
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"
---
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

View File

@@ -1,3 +1,5 @@
# test_repo
test repo
test repo
## test

7
main.c
View File

@@ -20,9 +20,4 @@ int main(int argc, char** argv)
int add(int a, int b)
{
return a + b;
}
int a1()
{
return 1;
}
}