From 2d522622b1fee7e35efc236e4854c62611870c25 Mon Sep 17 00:00:00 2001 From: Kamil Paprota Date: Fri, 3 Apr 2020 16:48:41 +0200 Subject: [PATCH] metryki --- Dockerfile | 2 ++ Jenkinsfile | 5 +++++ plots.sh | 9 +++++++++ 3 files changed, 16 insertions(+) create mode 100644 plots.sh diff --git a/Dockerfile b/Dockerfile index 9b6b59c..86001a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,8 @@ RUN apt install -y gcc RUN gcc --version RUN apt install -y build-essential RUN git clone https://github.com/usnistgov/SCTK.git +RUN apt-get update && \ + apt-get install -y gnuplot5 WORKDIR SCTK RUN make config && make all && make check && make install && make doc ENV PATH=$PATH:/SCTK/bin \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 97d3a7f..7a4776a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,6 +16,11 @@ pipeline { archiveArtifacts 'wer.tsv' archiveArtifacts 'wikiniews_results_with_wer.tsv' } + } + stage('Wykresiki'){ + steps{ + build 's416267-plots' + } } } } \ No newline at end of file diff --git a/plots.sh b/plots.sh new file mode 100644 index 0000000..b27925d --- /dev/null +++ b/plots.sh @@ -0,0 +1,9 @@ +for FILE in "$@" +do + gnuplot <<- EOF + set term png + set title "Graph - ${FILE}" + set output "${FILE}.png" + plot "${FILE}.txt" with points pointtype 5 notitle +EOF +done \ No newline at end of file