-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_gh_test_in_docker.sh
More file actions
111 lines (77 loc) · 2.47 KB
/
run_gh_test_in_docker.sh
File metadata and controls
111 lines (77 loc) · 2.47 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#PATH=$PATH:$(realpath ~/git/git-pad)
git config --global user.name run_gh_test_in_docker_sh
git config --global user.email tester@docker-ci-git-pad
mkdir git-pad-test
cd git-pad-test
if [ ! -d R1 ]; then git clone git@github.com:kwhkim/git-pad.git R1; fi
#if [ ! -d bare1.git ]; then git clone --bare git@github.com:kwhkim/git-pad.git bare1.git; fi
if [ -d bare1.git ]; then rm bare1.git || rm -rf bare1.git; fi
git clone --bare git@github.com:kwhkim/git-pad.git bare1.git
cd R1 && echo "R1"
git pad list
git pad status
git pad remote
git pad track
git pad init --no-clone
git pad new --title="first issue" --body="This is for testing"
git pad new --title="second issue" --body="This is second issue"
git pad status
git pad commit -m "R1 first commit"
git pad list
git pad new --title="third issue" --body="This is the third"
git pad status
git pad commit -m "R1 second commit"
git remote add local ../bare1.git
git pad track local
git pad push local
cd ..
if [ ! -d R2 ]; then git clone bare1.git R2; fi
cd R2 && echo R2
git pad clone
git pad list
git pad status
git pad new --title="4th issue" --body="This is 4th" --type="announcement" --priority="P1"
git pad new --title="5th issue" --body="This happens when ..." --type="bug" --priority="P1"
git pad commit -m "R2 issue number 4 and 5"
git pad push
cd ..
if [ ! -d R3 ]; then git clone bare1.git R3; fi
cd R3
git pad init --clone
git pad list
git pad status
git pad pull
pwd
cd ..
if [ ! -d R4 ]; then git clone bare1.git R4; fi
if [ ! -d R5 ]; then git clone bare1.git R5; fi
pwd
cd R5 && git pad init --clone && cd ..
pwd
cd R4
git pad clone
id=$(git pad list | awk '{print $1}' | grep -v ID | head -1)
git pad comment "$id" -m "Looks good. keep it up"
git pad new --title="6th issue" --body="This is 6th" --type="announcement" --priority="P2"
git pad commit -m "R4 commit 1"
git pad new --title="7th issue" --body="This happens when ..." --type="bug" --priority="P2"
git pad commit -m "R4 commit 2"
git pad push
cd ..
cd R3
pwd
git pad pull
cd ..
cd R5
pwd
git pad new --title="6th another issue" --body="This is 6th" --type="announcement" --priority="P2"
git pad commit -m "R5 commit 1b"
git pad new --title="7th another issue" --body="This happens when ..." --type="bug" --priority="P2"
git pad commit -m "R5 commit 2b"
id=$(git pad list | awk '{print $1}' | grep -v ID | head -1)
git pad comment "$id" -m "Let's get rolling."
git pad push || true
git pad pull
git pad list
cd -
if [ ! -d R6 ]; then git clone bare1.git R6; fi