diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 42858ff..599547c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,17 @@ -hello-world: +build:gcclatest: + image: gcc:latest + stage: build script: - - echo "Hello World" + - g++ src/helloworld.cpp -o helloWorld + artifacts: + paths: + - helloWorld + +test:gcclatest: + image: gcc:latest + script: + - ls + - chmod +x helloWorld + - ./helloWorld + dependencies: + - build:gcclatest diff --git a/src/helloworld.cpp b/src/helloworld.cpp new file mode 100644 index 0000000..86bb659 --- /dev/null +++ b/src/helloworld.cpp @@ -0,0 +1,6 @@ +#include + +int main(){ + std::cout << "Hello World!" << std::endl; + return 0; +}