forked from thinkingrock-gtd/tr-pc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
172 lines (150 loc) · 6.71 KB
/
justfile
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
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
@_list:
just --list --unsorted
repodir := `pwd`
netbeans-plat-version := "17"
alias verify-ci := verify-tr
# Builds the entire project - also downloading the harness if needed
build:
ant build -Dnbplatform.default.netbeans.dest.dir={{repodir}}/netbeans-plat/{{ netbeans-plat-version }}/ide
# Creates the zipped application code in dist/trgtd.zip
build-zip:
ant build-zip -Dnbplatform.default.netbeans.dest.dir={{repodir}}/netbeans-plat/{{ netbeans-plat-version }}/ide
# Verifies a single module
verify-module module: build
cd modules/{{module}} && ant test -Dnbplatform.default.netbeans.dest.dir={{repodir}}/netbeans-plat/{{ netbeans-plat-version}}/ide
# Verifies modules with headless tests
verify-headless: verify-tr verify-deps
# Verifies all modules - including UI tests
verify: verify-headless verify-ui
# Verifies thinking rock modules (only headless)
verify-tr:
just verify-module au.com.trgtd.tr.appl
just verify-module au.com.trgtd.tr.archive
just verify-module au.com.trgtd.tr.cal
just verify-module au.com.trgtd.tr.calendar
just verify-module au.com.trgtd.tr.calendar.ical4j
just verify-module au.com.trgtd.tr.calendar.ical4j.impl
just verify-module au.com.trgtd.tr.data
just verify-module au.com.trgtd.tr.data.recent
just verify-module au.com.trgtd.tr.datastore
just verify-module au.com.trgtd.tr.datastore.xstream
just verify-module au.com.trgtd.tr.email
just verify-module au.com.trgtd.tr.export
just verify-module au.com.trgtd.tr.export.actions
just verify-module au.com.trgtd.tr.export.data
just verify-module au.com.trgtd.tr.export.references
just verify-module au.com.trgtd.tr.export.someday
just verify-module au.com.trgtd.tr.extract
just verify-module au.com.trgtd.tr.find
just verify-module au.com.trgtd.tr.imports
just verify-module au.com.trgtd.tr.imports.thoughts
just verify-module au.com.trgtd.tr.l10n.de_DE
just verify-module au.com.trgtd.tr.l10n.fr_FR
just verify-module au.com.trgtd.tr.l10n.en_US
just verify-module au.com.trgtd.tr.l10n.es_ES
just verify-module au.com.trgtd.tr.prefs.actions
just verify-module au.com.trgtd.tr.prefs.data
just verify-module au.com.trgtd.tr.prefs.dates
just verify-module au.com.trgtd.tr.prefs.projects
just verify-module au.com.trgtd.tr.prefs.recurrence
just verify-module au.com.trgtd.tr.prefs.ui
just verify-module au.com.trgtd.tr.report.project.detail
just verify-module au.com.trgtd.tr.report.project.outline
just verify-module au.com.trgtd.tr.report.projects.future
just verify-module au.com.trgtd.tr.report.sa
just verify-module au.com.trgtd.tr.reports.actions.delegated
just verify-module au.com.trgtd.tr.reports.actions.doasap
just verify-module au.com.trgtd.tr.reports.actions.scheduled
just verify-module au.com.trgtd.tr.reports.done
just verify-module au.com.trgtd.tr.reports.pocketmod
just verify-module au.com.trgtd.tr.reports.reference
just verify-module au.com.trgtd.tr.reports.someday
just verify-module au.com.trgtd.tr.reports.weekly
just verify-module au.com.trgtd.tr.resource
just verify-module au.com.trgtd.tr.runtime
just verify-module au.com.trgtd.tr.services
just verify-module au.com.trgtd.tr.sync.device
just verify-module au.com.trgtd.tr.sync.iphone
just verify-module au.com.trgtd.tr.task.activation
just verify-module au.com.trgtd.tr.task.messages
just verify-module au.com.trgtd.tr.task.recurrence
just verify-module au.com.trgtd.tr.util
just verify-module au.com.trgtd.tr.view
just verify-module au.com.trgtd.tr.view.actn
just verify-module au.com.trgtd.tr.view.actns
just verify-module au.com.trgtd.tr.view.calendar
just verify-module au.com.trgtd.tr.view.collect
just verify-module au.com.trgtd.tr.view.contexts
just verify-module au.com.trgtd.tr.view.criteria
just verify-module au.com.trgtd.tr.view.delegates
just verify-module au.com.trgtd.tr.view.filters
just verify-module au.com.trgtd.tr.view.goals
just verify-module au.com.trgtd.tr.view.overview
just verify-module au.com.trgtd.tr.view.process
just verify-module au.com.trgtd.tr.view.project
just verify-module au.com.trgtd.tr.view.projects
just verify-module au.com.trgtd.tr.view.reference
just verify-module au.com.trgtd.tr.view.someday
just verify-module au.com.trgtd.tr.view.topics
just verify-module tr.extract.reports
just verify-module tr.extract.reports.projectdetails
just verify-module tr.extract.reports.projectoutline
just verify-module tr.model
# The following modules are not active:
# - Export/Report Cleanup - Preferences for removing old export and report files - doesn't build
# just verify-module au.com.trgtd.tr.extract.clean
# - TR Languages - Planned to replace previous localization modules - not implemented yet
# just verify-module au.com.trgtd.tr.i18n
# - Dutch Translation - missing the OverviewSVGProvider_nl_NL.java class
# just verify-module au.com.trgtd.tr.l10n.nl_NL
# - TR Update Center - no code
# just verify-module au.com.trgtd.tr.updates
# - XStream2 seems to be am unfinished modified copy of au.com.trgtd.tr.datastore.xstream
# just verify-module au.com.trgtd.tr.datastore.xstream2
# Verifies the modules of external dependencies
verify-deps:
just verify-module activation
just verify-module commons.email
just verify-module commons-lang
just verify-module commons-lang3
just verify-module commons-logging
just verify-module commons-text
just verify-module fop
just verify-module glazedlists-1.7.0_java
just verify-module ical4j
just verify-module jasperreports
just verify-module javamail
just verify-module jaxb
just verify-module miglayout-4.0-swing
just verify-module minimal-json
just verify-module swingx
just verify-module xalan
just verify-module xstream-1.4.19
# Verifies a module that requires a graphical user interface (not in CI)
verify-ui:
just verify-module au.com.trgtd.tr.swing
# Shows some diagnostics used by ant
diagnostics:
ant -diagnostics
# Clears the cache of the local development version of ThinkingRock
[linux]
[macos]
clear-cache-dev:
rm -rI ./build/testuserdir/var/cache/
# Clears the cache of the local development version of ThinkingRock
[windows]
clear-cache-dev:
rm -r -fo ./build/testuserdir/var/cache/
# Clears the cache of production versions of ThinkingRock
[linux]
clear-cache-prod:
rm -rI ~/.cache/trgtd/
# Clears the cache of production versions of ThinkingRock
[macos]
clear-cache-prod:
rm -rI ~/Library/Caches/trgtd/
# Clears the cache of production versions of ThinkingRock
[windows]
clear-cache-prod:
rm -r -fo env_var('APPDATA')\..\Local\trgtd\Cache\