blob: 56a2715b6b414475c58eba6e0d2a6261a201afb0 [file] [log] [blame]
Basil Eljuse4b14afb2020-09-30 13:07:23 +01001#!/usr/bin/env bash
2
3#======================================================================
4# Copyright (c) 2020, Arm Limited. All rights reserved.
5#
6# SPDX-License-Identifier: BSD-3-Clause
7#======================================================================
8
9export TFA_REPO='https://github.com/ARM-software/arm-trusted-firmware.git'
10export GITHUBPY_REPO='https://github.com/michaelliao/githubpy.git'
11
12export DEFECT_LOG=tfa_defects_summary.txt
13export COMPLEXITY_LOG=tfa_complexity_summary.txt
14export CODE_CHURN_LOG=tfa_code_churn.txt
15
16# Authentication token needs to be generated using following command:
17# curl -H "Content-Type: application/json" -X POST -d \
18# "$(cat <CREDENTIALS_JSON_FILE>)" http://<IP_ADDR>:5000/auth
19# where "IP_ADDR" is the IP address of host where metrics server is running, and
20# CREDENTIALS_JSON file should contain credentials which should match with
21# the credentials in ../../broker-component/credentials.py
22# Response would contain a JWT token, which needs to be added here
23# during deployment
24export TFA_METRICS_AUTH_TOKEN="<TFA Authorization Token>"
25
26# INFLUX_HOST is the IP address of host where InfluxDB service is running
27# It needs to be updated during deployment
28export INFLUX_HOST="<Influx Public Host IP>"
29
30# Use relative path to the current script
31DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"