Skip to content
Snippets Groups Projects
Commit 9620880c authored by Alejandro Lopez Gestoso's avatar Alejandro Lopez Gestoso
Browse files

Update .gitlab-ci.yml file

parent 10727a64
No related branches found
No related tags found
No related merge requests found
Pipeline #13227 failed
......@@ -3,46 +3,17 @@
stages:
- rdepends
variables:
ALGO: "TRUE"
mal:
stage: rdepends
script:
- exit 1
bien:
stage: rdepends
script:
- exit 0
when_bien:
stage: rdepends
when: always
needs: [bien]
script:
- echo "GOOD"
when_mal:
stage: rdepends
when: always
needs: [mal]
script:
- echo "GOOD"
algo_bien:
stage: rdepends
rules:
- if: $ALGO == "TRUE"
when: always
script:
- echo "GOOD"
algo_mal:
stage: rdepends
rules:
- if: $ALGO != "TRUE"
when: always
test_dep:
stage: test
script:
- echo "GOOD"
\ No newline at end of file
- DEP=( $(grep -P '[^#]\s+SET\(CPACK_DEBIAN_PACKAGE_DEPENDS\s+"' CMakeLists.txt) )
- declare -a DEP
- for ((i=1;i<${#DEP[@]};i+=3))
do
if [ ${i} -eq 1 ]
then
apt -y install ${DEP[${i}]:1}
else
apt -y install ${DEP[${i}]}
fi
done
\ 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