more improved testing

This commit is contained in:
Arne Teuke
2017-07-11 18:24:39 +01:00
parent eacdc6522b
commit 387ab193a9

10
Jenkinsfile vendored
View File

@@ -58,7 +58,9 @@ pipeline {
stage('update repo structure') {
steps {
sh '''rm -Rf REPOSTRUCTURE.md
sh '''if [ test -f REPOSTRUCTURE.md ]; then
rm -Rf REPOSTRUCTURE.md
fi
echo "$(tree --dirsfirst --charset=ascii .)" > REPOSTRUCTURE.md'''
}
}
@@ -183,10 +185,12 @@ Changelog of Git Changelog.
stage('check for UTF-8 files') {
steps {
sh '''if [ ! -d test ]; then
mkdir test
sh '''if [ ! -d tests ]; then
mkdir tests
fi
if [ -f tests/UTF_Files ]; then
rm -Rf tests/UTF_Files
fi
echo "$(find . -type f -exec file {} \\;)" > FileList
echo "$(grep -v ASCII FileList | grep -v git)" > tests/UTF_Files'''
}