Add example helloworld and configuration
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
pipeline:
|
||||||
|
build:
|
||||||
|
image: gcc
|
||||||
|
commands:
|
||||||
|
- make clean
|
||||||
|
- make
|
||||||
|
- make install
|
||||||
|
|
||||||
+1
-1
@@ -31,4 +31,4 @@
|
|||||||
*.exe
|
*.exe
|
||||||
*.out
|
*.out
|
||||||
*.app
|
*.app
|
||||||
|
bin/
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
#include <iostream>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
cout << "Hello, World!";
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user