forked from jupp0r/prometheus-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-prepare
More file actions
executable file
·39 lines (31 loc) · 1 KB
/
run-prepare
File metadata and controls
executable file
·39 lines (31 loc) · 1 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
set -euo pipefail
BUILDSYSTEM_ARG=${1:?}
OS_ARG=${2:?}
case "${OS_ARG}" in
ubuntu*)
packages=(locales)
case "${BUILDSYSTEM_ARG}" in
cmake)
packages+=(python-pip python-wheel)
;;
esac
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
source /etc/lsb-release
echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
packages+=(telegraf)
sudo apt-get remove -y --purge man-db # avoid time-consuming trigger
sudo apt-get update
sudo apt-get install -y "${packages[@]}"
sudo locale-gen de_DE.UTF-8 # used by SerializerTest
;;
macOS*)
packages=(prometheus telegraf)
brew install "${packages[@]}"
;;
esac
case "${BUILDSYSTEM_ARG}" in
cmake)
"${VCPKG_INSTALLATION_ROOT}/vcpkg" install benchmark civetweb curl gtest zlib
;;
esac