forked from aeron-io/aeron
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-ci-tests.sh
More file actions
executable file
·34 lines (29 loc) · 786 Bytes
/
run-ci-tests.sh
File metadata and controls
executable file
·34 lines (29 loc) · 786 Bytes
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
#!/usr/bin/env bash
if [ -z "$AERON_GITHUB_PAT" ]
then
echo "Please set AERON_GITHUB_PAT environment variable to contain your token"
exit 1
fi
event_type=run-commit-tests
for option in "$@"
do
case ${option} in
-s|--slow)
event_type=run-slow-tests
shift
;;
-c|--commit)
shift
;;
*)
echo "$0 [-s|--slow-tests] (run slow tests) [-c|--commit] (run commit tests) default: commit tests"
exit
;;
esac
done
echo "Sending repository_dispatch, event_type: ${event_type}"
curl -v -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ${AERON_GITHUB_PAT}" \
--request POST \
--data "{\"event_type\": \"${event_type}\"}" \
https://api.github.com/repos/real-logic/aeron/dispatches