forked from javanile/php-imap2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
181 lines (126 loc) · 5.42 KB
/
Makefile
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
bash:
@docker-compose run --rm php bash
build:
@docker-compose build
install:
@docker-compose run --rm composer install
update:
@docker-compose run --rm composer update
dump-autoload:
@docker-compose run --rm composer dump-autoload
imap2-coverage:
@docker-compose run --rm imap2 ./vendor/bin/phpunit tests --coverage-html docs/coverage
imap2-test:
@docker-compose run --rm imap2 ./vendor/bin/phpunit tests --stop-on-failure
coverage:
@docker-compose run --rm php ./vendor/bin/phpunit tests/ErrorsTest.php --coverage-html docs/coverage
release:
git add .
git commit -am "Test CI"
git push
## =======
## Develop
## =======
google-access-token-link:
@open "https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount?redirect_uri=https%3A%2F%2Fdevelopers.google.com%2Foauthplayground&prompt=consent&response_type=code&client_id=407408718192.apps.googleusercontent.com&scope=https%3A%2F%2Fmail.google.com%2F&access_type=offline&flowName=GeneralOAuthFlow"
google-access-token:
@bash contrib/google-access-token.sh
refresh-access-token:
@bash contrib/refresh-access-token.sh
## =====
## Tests
## =====
test:
@docker-compose run --rm phpunit tests --stop-on-failure --verbose
test-open:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testOpenAndClose
test-alerts:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testAlerts
test-last-error:
@docker-compose run --rm phpunit tests --filter ErrorsTest::testLastError
test-check:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testCheck
test-status:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testStatus
test-mailbox-msg-info:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testMailboxMsgInfo
test-append:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testAppend
test-list:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testList
test-delete:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testDelete
test-fetch-body:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testFetchBody
test-fetch-overview:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testFetchOverview
test-uid:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testUid
test-create-mailbox:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testCreateMailbox
test-copy:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testCopy
test-move:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testMove
test-fetch-header:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testFetchHeader
test-fetch-structure:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testFetchStructure
test-header-info:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testHeaderInfo
test-headers:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testHeaders
test-num-msg:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testNumMsg
test-reopen:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testReopen
test-fetch-mime:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testFetchMime
test-ping:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testPing
test-get-mailboxes:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testGetMailboxes
test-delete-mailbox:
@docker-compose run --rm phpunit tests --filter CompatibilityTest::testDeleteMailbox
test-body-structure:
@docker-compose run --rm phpunit tests --filter BodyStructureTest::testFetchStructure
test-search:
@docker-compose run --rm phpunit tests --filter SearchTest
test-timeout:
@docker-compose run --rm phpunit tests --filter XoauthTest::testTimeout
test-xoauth:
@docker-compose run --rm phpunit tests --filter XoauthTest
test-signatures:
@docker-compose run --rm phpunit tests --filter SignaturesTest
test-polyfill:
@docker-compose run --rm phpunit tests --filter PolyfillTest
test-parse-headers:
@docker-compose run --rm phpunit tests --filter PolyfillTest::testRfc822ParseHeaders
test-parse-adrlist:
@docker-compose run --rm phpunit tests --filter PolyfillTest::testRfc822ParseAdrList
test-special:
@docker-compose run --rm phpunit tests --filter HeaderInfoTest::testSanitizeAddress
test-minimal:
@docker-compose run --rm phpunit tests --filter MinimalTest
test-cleaning:
@docker-compose run --rm phpunit tests --filter CleaningTest
test-retrofit:
@docker-compose run --rm phpunit tests --filter RetrofitTest
test-errors:
@docker-compose run --rm phpunit tests --filter ErrorsTest
## ======
## Legacy
## ======
legacy-last-error:
@docker-compose run --rm php -f tests/legacy/last-error.php
## ====
## Diff
## ====
diff-last-error:
@docker-compose run --rm php bash -c "php -f tests/legacy/last-error.php > tests/legacy/last-error.1.txt 2>&1"
@docker-compose run --rm imap2 bash -c "php -f tests/legacy/last-error.php > tests/legacy/last-error.2.txt 2>&1"
@docker-compose run --rm imap2 bash -c "chmod 777 -R tests/legacy"
diff-fetch-body-error:
@docker-compose run --rm php bash -c "php -f tests/legacy/fetch-body-error.php > tests/legacy/fetch-body-error.1.txt 2>&1"
@docker-compose run --rm imap2 bash -c "php -f tests/legacy/fetch-body-error.php > tests/legacy/fetch-body-error.2.txt 2>&1"
@docker-compose run --rm imap2 bash -c "chmod 777 -R tests/legacy"