-
-
Notifications
You must be signed in to change notification settings - Fork 346
/
BaselineOfPharo.class.st
210 lines (164 loc) · 4.97 KB
/
BaselineOfPharo.class.st
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
"
This is a primary baseline to load Pharo base libraries, the IDE as well as projects that are managed in own repository (so called ""external projects"") and other
"
Class {
#name : 'BaselineOfPharo',
#superclass : 'BaselineOf',
#classVars : [
'ExternalProjects'
],
#category : 'BaselineOfPharo-Base',
#package : 'BaselineOfPharo',
#tag : 'Base'
}
{ #category : 'private' }
BaselineOfPharo class >> declareExternalProjects [
^ (Pragma allNamed: #externalProject in: self class)
collect: [ :each | each method valueWithReceiver: self ]
as: Array
]
{ #category : 'accessing - external projects' }
BaselineOfPharo class >> documentBrowser [
<externalProject>
^ PharoExternalProject
newName: 'DocumentBrowser'
owner: 'pharo-spec'
project: 'NewTools-DocumentBrowser'
version: 'Pharo13'
]
{ #category : 'repository urls' }
BaselineOfPharo class >> documentBrowserRepository [
^ (self externalProjectNamed: 'DocumentBrowser') repository
]
{ #category : 'accessing - external projects' }
BaselineOfPharo class >> externalProjectNamed: aName [
^ self externalProjects
detect: [ :each | each name = aName ]
]
{ #category : 'accessing' }
BaselineOfPharo class >> externalProjects [
<script: 'self externalProjects inspect'>
^ ExternalProjects ifNil: [
ExternalProjects := self declareExternalProjects ]
]
{ #category : 'accessing - external projects' }
BaselineOfPharo class >> iceberg [
<externalProject>
^ PharoExternalProject
newName: 'Iceberg'
owner: 'pharo-vcs'
project: 'iceberg'
version: 'Pharo13'
sourceDir: nil
]
{ #category : 'repository urls' }
BaselineOfPharo class >> icebergRepository [
^ (self externalProjectNamed: 'Iceberg') repository
]
{ #category : 'accessing - external projects' }
BaselineOfPharo class >> microdown [
<externalProject>
^ PharoExternalProject
newName: 'Microdown'
owner: 'pillar-markup'
project: 'Microdown'
version: 'Pharo13'
]
{ #category : 'repository urls' }
BaselineOfPharo class >> microdownRepository [
^ (self externalProjectNamed: 'Microdown') repository
]
{ #category : 'accessing - external projects' }
BaselineOfPharo class >> newTools [
<externalProject>
^ PharoExternalProject
newName: 'NewTools'
owner: 'pharo-spec'
project: 'NewTools'
version: 'Pharo13'
]
{ #category : 'repository urls' }
BaselineOfPharo class >> newToolsRepository [
^ (self externalProjectNamed: 'NewTools') repository
]
{ #category : 'accessing - external projects' }
BaselineOfPharo class >> roassal [
<externalProject>
^ PharoExternalProject
newName: 'Roassal'
owner: 'pharo-graphics'
project: 'Roassal'
version: 'v1.06b'
]
{ #category : 'repository urls' }
BaselineOfPharo class >> roassalRepository [
^ (self externalProjectNamed: 'Roassal') repository
]
{ #category : 'accessing - external projects' }
BaselineOfPharo class >> spec [
<externalProject>
^ PharoExternalProject
newName: 'Spec2'
owner: 'pharo-spec'
project:'Spec'
version: 'Pharo13'
]
{ #category : 'repository urls' }
BaselineOfPharo class >> specRepository [
^ (self externalProjectNamed: 'Spec2') repository
]
{ #category : 'accessing - external projects' }
BaselineOfPharo class >> toplo [
<externalProject>
^ PharoExternalProject
newName: 'Toplo'
owner: 'pharo-graphics'
project: 'Toplo'
version: 'Pharo12'
]
{ #category : 'repository urls' }
BaselineOfPharo class >> toploRepository [
^ (self externalProjectNamed: 'Toplo') repository
]
{ #category : 'accessing - external projects' }
BaselineOfPharo class >> welcomeBrowser [
<externalProject>
^ PharoExternalProject
newName: 'WelcomeBrowser'
owner: 'pharo-spec'
project: 'NewTools-WelcomeBrowser'
version: 'Pharo13'
]
{ #category : 'repository urls' }
BaselineOfPharo class >> welcomeBrowserRepository [
^ (self externalProjectNamed: 'WelcomeBrowser') repository
]
{ #category : 'baselines' }
BaselineOfPharo >> baseline: spec [
<baseline>
| repository |
repository := self packageRepositoryURLForSpec: spec.
spec for: #common do: [
spec postLoadDoIt: #postload:package:.
spec baseline: 'BaseLibraries' with: [ spec repository: repository ].
spec baseline: 'IDE' with: [ spec repository: repository ].
spec baseline: 'Calypso' with: [
spec
repository: repository;
loads: #( 'IcebergSupport' ) ].
spec
package: 'Gofer-Deprecated';
package: 'Deprecated13' ]
]
{ #category : 'actions' }
BaselineOfPharo >> postload: loader package: packageSpec [
"If we added a github token for the build, we remove it."
Smalltalk os environment at: #GITHUB_TOKEN ifPresent: [ :token |
| credential |
credential := (Smalltalk classNamed: #IceCredentialStore) current plaintextCredentialForHostname: 'github.com'.
credential password = token ifTrue: [ (Smalltalk classNamed: #IceCredentialStore) current removePlainTextCredential: credential ].
'Removing credential.' traceCr ].
"Open the WelcomeBrowser as last step"
(self class environment classNamed: #StWelcomeBrowser)
ifNotNil: [ :aClass | aClass openForRelease ]
]