aboutsummaryrefslogtreecommitdiff
path: root/.github/scripts/test_docker.sh
blob: 56dccf3430b7743aef48112cfb6572bd4140ae46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
#
# Test TCPDBench build using Docker
#
# Author: G.J.J. van den Burg
# Date: 2021-01-26
#

set -e -u -x -o pipefail

echo "Building docker image"

docker build -t alan-turing-institute/tcpdbench .

echo "Creating output directory"

mkdir -p ${GITHUB_WORKSPACE}/analysis/output

echo "Recreating results and checking for differences"

docker run -v ${GITHUB_WORKSPACE}/analysis/output:/TCPDBench/analysis/output \
	alan-turing-institute/tcpdbench \
	/bin/bash -c "make clean && make results && git checkout ./analysis/output/rankplots/*.pdf && git diff --exit-code"

echo "Test building the virtual environments"

docker run alan-turing-institute/tcpdbench /bin/bash -c "make venvs"