Add example helloworld and configuration

This commit is contained in:
Arif Herusetyo Wicaksono 2018-07-26 13:07:42 +09:00
parent 196e865cda
commit 30a9b33d76
4 changed files with 31 additions and 1 deletions

8
.drone.yml Normal file
View File

@ -0,0 +1,8 @@
pipeline:
build:
image: gcc
commands:
- make clean
- make
- make install

2
.gitignore vendored
View File

@ -31,4 +31,4 @@
*.exe
*.out
*.app
bin/

14
Makefile Normal file
View File

@ -0,0 +1,14 @@
.PHONY: all
all: helloworld
helloworld: helloworld.cpp
g++ helloworld.cpp -o helloworld
.PHONY: install
install:
mkdir -p bin
mv helloworld bin
.PHONY: clean
clean:
rm -f hello

8
helloworld.cpp Normal file
View File

@ -0,0 +1,8 @@
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, World!";
return 0;
}