Add build test
This commit is contained in:
parent
4617b18fe4
commit
5be3db6f0a
|
@ -1,12 +1,15 @@
|
||||||
# Define the stages of your pipeline
|
# Define stages
|
||||||
stages:
|
stages:
|
||||||
- check
|
- build
|
||||||
|
- test
|
||||||
|
|
||||||
# Define a job for the check stage
|
# Build job
|
||||||
check_pipeline:
|
build:
|
||||||
stage: check
|
stage: build
|
||||||
image: alpine:latest # Use a lightweight Docker image
|
image: gcc:latest # Use GCC for building C/C++ projects
|
||||||
script:
|
script:
|
||||||
- echo "Pipeline is running!"
|
- echo "Building the application..."
|
||||||
- uname -a # Print system information
|
- mkdir -p build
|
||||||
- whoami # Print current user
|
- cd build
|
||||||
|
- cmake .. # Configure the build
|
||||||
|
- make # Compile the application
|
Loading…
Reference in New Issue