-
Notifications
You must be signed in to change notification settings - Fork 1
/
prey.sh
executable file
·41 lines (38 loc) · 999 Bytes
/
prey.sh
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
40
41
#! /bin/bash
CONTEXT="$1"
METRIC="visuallyLoaded"
TIME="14d"
DEVICE="flame-kk"
MEMORY="512"
BRANCH="master"
TEST="cold-launch"
if [ -z "$CONTEXT" ]; then
echo "Missing context for determining regressions"
# Exiting with 0 code to keep heroku from telling me it crashed
exit 0
fi
./node_modules/.bin/raptor query measure \
--host $DB_HOST \
--port $DB_PORT \
--username $DB_USERNAME \
--password $DB_PASSWORD \
--database $DB_NAME \
--protocol $DB_PROTOCOL \
--context $CONTEXT \
--metric $METRIC \
--test $TEST \
--time $TIME \
--device $DEVICE \
--memory $MEMORY \
--branch $BRANCH | ./node_modules/.bin/raptor regression | ./node_modules/.bin/raptor track \
--host $DB_HOST \
--port $DB_PORT \
--username $DB_USERNAME \
--password $DB_PASSWORD \
--database $DB_NAME \
--protocol $DB_PROTOCOL | ./node_modules/.bin/raptor bug \
--url $BZ_URL \
--timeout $BZ_TIMEOUT \
--username $BZ_USERNAME \
--password $BZ_PASSWORD \
--token $BITLY_TOKEN