-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathbuild-testcase-large-binary-jar
More file actions
executable file
·88 lines (59 loc) · 2.97 KB
/
build-testcase-large-binary-jar
File metadata and controls
executable file
·88 lines (59 loc) · 2.97 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
. ./.gh-api-examples.conf
normal=$(tput sgr0)
highlight=$(tput setaf 2)
printf "$highlight"
cat << EOF
________ ____
/_ __/ /_ ___ / __ \____ _ _____ _____
/ / / __ \/ _ \ / /_/ / __ \ | /| / / _ \/ ___/
/ / / / / / __/ / ____/ /_/ / |/ |/ / __/ /
/_/ /_/ /_/\___/ /_/ \____/|__/|__/\___/_/
EOF
printf "${normal}"
printf "${highlight} - Creating repo: ${normal}"
./create-repo-testrepo.sh | jq -r '.name'
printf "${highlight} - Adding team to repo (team_slug must be set in your .gh-api-examples.conf file)${normal}\n"
./add-team-to-repo.sh
printf "${highlight} - Creating webhook: ${normal}"
./create-webhook.sh | jq -r '.id'
printf "${highlight} - Creating docs/README.md: ${normal}"
./create-commit-readme.sh | jq -r ".content.html_url"
printf "${highlight} - Creating simple workflow file: ${normal}"
./create-commit-workflow-simple.sh | jq -r ".content.html_url"
printf "${highlight} - Creating CODEOWNERS: ${normal}"
./create-commit-codeowners.sh| jq -r ".content.html_url"
printf "${highlight} - Creating requirements.txt: ${normal}"
./create-commit-python-pip.sh| jq -r ".content.html_url"
sleep 2
printf "${highlight} - Creating new branch: ${normal}"
./create-branch-newbranch.sh | jq -r '.url'
printf "${highlight} - Creating a commit on the new branch: ${normal}"
./create-commit-on-new-branch.sh | jq -r ".content.html_url"
printf "${highlight} - Creating an update commit to docs/README.md: ${normal}"
./create-commit-update-readme.sh | jq -r ".content.html_url"
printf "${highlight} - Creating an issue: ${normal}"
./create-repo-issue.sh | jq -r '.html_url'
printf "${highlight} - Creating a pull request: ${normal}"
./create-pull-request.sh | jq -r '.html_url'
printf "${highlight} - Setting branch protection rules on default branch: ${normal}"
./set-branch-protection.sh | jq -r '.url'
printf "${highlight} - Creating a release: ${normal}"
./create-release.sh | jq -r '.html_url'
printf "${highlight} - Adding a .gitattributes file to new branch: ${normal}"
./create-commit-gitattributes.sh | jq -r ".content.html_url"
printf "${highlight} - Adding a large jar file to new branch: ${normal}"
./create-commit-jarfile.sh > tmp/create-commit-jarfile-output.json
jq -r '
"name = \(.content.name)
size = \(.content.size)
content_sha = \(.content.sha)
commit_sha = \(.commit.sha)"' tmp/create-commit-jarfile-output.json
content_sha=$(jq -r '.content.sha' tmp/create-commit-jarfile-output.json)
./clone-default-repo.sh 2>/dev/null
printf "${highlight} ------------------------------------------------------- ${normal}\n"
printf "${highlight} cd to repo and run git-sizer: ${normal}\n"
cd src/$repo
git-sizer --verbose
printf "${highlight} ------------------------------------------------------- ${normal}\n"
echo ".ref-contains $org/$repo $content_sha"
printf "${highlight} ------------------------------------------------------- ${normal}\n"