Skip to content
Snippets Groups Projects
Commit e9acd2ee authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Create a gitLab pipeline configuration

parent b0cf26cf
No related branches found
No related tags found
No related merge requests found
# CI pipeline configuration
stages:
- build
- run
- test
building_stage:
stage: build
allow_failure: false
artifacts:
paths:
- build/cluster/*
- build/sphere/*
- build/trapping/*
exclude:
- ".git*"
- ".git/**/*"
expire_in: 2 hours
script:
# bash commands to be executed
- pwd
- hostname
- echo $CI_COMMIT_SHA
- echo $CI_COMMIT_BRANCH
- cd src
- echo "Running make"
- make
running_stage:
stage: run
allow_failure: false
needs:
- job: building_stage
artifacts:
paths:
- build/cluster/*
- build/sphere/*
- build/trapping/*
exclude:
- ".git*"
- ".git/**/*"
expire_in: 2 hours
script:
# bash commands to be executed
- pwd
- hostname
- echo $CI_COMMIT_SHA
- echo $CI_COMMIT_BRANCH
- cd build/sphere
- echo "Running SPH"
- chmod +x edfb sph np_sphere
- ./edfb
- ./sph
- echo "Running np_sphere"
- ./np_sphere
- cd ../cluster
- echo "Running CLU"
- chmod +x edfb clu np_cluster
- ./edfb
- ./clu
- echo "Running np_cluster"
- ./np_cluster
testing_stage:
stage: test
allow_failure: true
needs:
- job: running_stage
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment