Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit c7de520

Browse files
committed
CI: add bc
1 parent a275724 commit c7de520

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
- run:
99
name: Install software
1010
command: |
11-
apt-get update && apt-get install -y sudo wget jq gawk pgreplay \
11+
apt-get update && apt-get install -y sudo wget jq gawk pgreplay bc \
1212
&& wget get.docker.com -q -S -O - | sudo sh
1313
- checkout
1414
- setup_remote_docker

nancy_prepare_workload.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ if [ "${pgreplay_version:0:8}" != "pgreplay" ]; then
7272
exit 1;
7373
fi
7474
75+
bc_version=$(bc -v 2>/dev/null)
76+
if [ "${pgreplay_version:0:2}" != "bc" ]; then
77+
>&2 echo "ERROR: bc is not installed."
78+
exit 1;
79+
fi
80+
7581
cat $INPUT \
7682
| sed -r 's/^([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3} .*)$/\nNANCY_NEW_LINE_SEPARATOR\n\1/' \
7783
| sed "s/\"\"/NANCY_TWO_DOUBLE_QUOTES_SEPARATOR/g" \

0 commit comments

Comments
 (0)