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:
|
||||
- check
|
||||
- build
|
||||
- test
|
||||
|
||||
# Define a job for the check stage
|
||||
check_pipeline:
|
||||
stage: check
|
||||
image: alpine:latest # Use a lightweight Docker image
|
||||
# Build job
|
||||
build:
|
||||
stage: build
|
||||
image: gcc:latest # Use GCC for building C/C++ projects
|
||||
script:
|
||||
- echo "Pipeline is running!"
|
||||
- uname -a # Print system information
|
||||
- whoami # Print current user
|
||||
- echo "Building the application..."
|
||||
- mkdir -p build
|
||||
- cd build
|
||||
- cmake .. # Configure the build
|
||||
- make # Compile the application
|
Loading…
Reference in New Issue