Basil Eljuse | 4b14afb | 2020-09-30 13:07:23 +0100 | [diff] [blame] | 1 | #!/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 | |
| 9 | export TFA_REPO='https://github.com/ARM-software/arm-trusted-firmware.git' |
| 10 | export GITHUBPY_REPO='https://github.com/michaelliao/githubpy.git' |
| 11 | |
| 12 | export DEFECT_LOG=tfa_defects_summary.txt |
| 13 | export COMPLEXITY_LOG=tfa_complexity_summary.txt |
| 14 | export 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 |
| 24 | export 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 |
| 28 | export INFLUX_HOST="<Influx Public Host IP>" |
| 29 | |
| 30 | # Use relative path to the current script |
| 31 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |