This commit is contained in:
Dominik 2021-03-25 13:17:46 +01:00
parent 4e000231c3
commit a63623c615
2 changed files with 10 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -20,6 +20,8 @@ pipeline {
steps {
sh 'chmod +x test.sh'
sh './test.sh'
archiveArtifacts 'test.csv'
archiveArtifacts 'dev.csv'
archiveArtifacts 'train.csv'
}
}

10
test.sh
View File

@ -2,5 +2,11 @@ curl -OL https://git.wmi.amu.edu.pl/s434788/ium_434788/raw/branch/master/winequa
head -n 1 winequality-red.csv > header.csv
tail -n +2 winequality-red.csv | shuf > data.shuffled
head -n 1000 data.shuffled > train.data.csv
cat header.csv train.data.csv > train.csv
head -n 266 data.shuffled > wine.data.test
head -n 532 data.shuffled | tail -n 266 > wine.data.dev
tail -n +333 data.shuffled > wine.data.train
cat header.csv wine.data.test > test.csv
cat header.csv wine.data.dev > dev.csv
cat header.csv wine.data.train > train.csv