Skip to content
Snippets Groups Projects
Commit 21e7edeb authored by Tim Jaacks's avatar Tim Jaacks
Browse files

Improve ci-test build

parent 76bd81d8
No related branches found
No related tags found
1 merge request!208Improve ci-test build
Pipeline #30439 passed with stage
in 3 minutes and 22 seconds
......@@ -22,10 +22,12 @@ stages:
- cd ${CI_PROJECT_DIR}
- VERSION=$(cd .repo/manifests && git describe --tags)
- cat .repo/manifests/default.xml
- ls * > files-$VERSION.txt
- ls *
- FOO_FILES=$(cd foo && ls | wc -l)
- BAR_FILES=$(cd bar && ls | wc -l)
- find foo -name "[0-9]*.txt" -printf '%P\n' | sort -V > files-foo-$VERSION.txt
- cat files-foo-$VERSION.txt
- find bar -name "[0-9]*.txt" -printf '%P\n' | sort -V > files-bar-$VERSION.txt
- cat files-bar-$VERSION.txt
- FOO_FILES=$(cat files-foo-$VERSION.txt | wc -l)
- BAR_FILES=$(cat files-bar-$VERSION.txt | wc -l)
- DIFF=$((BAR_FILES-FOO_FILES))
- (($DIFF >= -1 && $DIFF <= 1))
......
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