Add main.c

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
2020-05-16 14:38:52 +08:00
parent 48a08d8cd8
commit 03b33a6610
2 changed files with 33 additions and 0 deletions

18
.drone.yml Normal file
View File

@@ -0,0 +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

15
main.c Normal file
View File

@@ -0,0 +1,15 @@
#include <stdio.h>
int main(int argc, char** argv)
{
int i;
printf("hello word!\n");
if (argc > 1)
{
for(i = 0; i < argc; i++)
{
printf("argv[%2d] = %s\n",i,argv[i]);
}
}
return 0;
}