Skip to content

Commit

Permalink
Merge pull request #593 from pillar-markup/unify-baselines
Browse files Browse the repository at this point in the history
Unify baselines
  • Loading branch information
jecisc authored Mar 11, 2024
2 parents 6d9df60 + df54741 commit 75b718c
Show file tree
Hide file tree
Showing 10 changed files with 142 additions and 219 deletions.
2 changes: 1 addition & 1 deletion .smalltalk.Integration.ston
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'PillarApp',
#baseline : 'Pillar',
#directory : 'src',
#platforms : [ #pharo ]
}
Expand Down
2 changes: 1 addition & 1 deletion .smalltalk.Unit.ston
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'PillarApp',
#baseline : 'Pillar',
#directory : 'src',
#platforms : [ #pharo ]
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fi

${PHARO} st --quit --save "${__dir}/unload_md.st"

${PHARO} eval --save "Iceberg remoteTypeSelector: #httpsUrl. Metacello new baseline: 'PillarApp'; repository: 'gitlocal://${REPOSITORY_PATH}'; load"
${PHARO} eval --save "Iceberg remoteTypeSelector: #httpsUrl. Metacello new baseline: 'Pillar'; repository: 'gitlocal://${REPOSITORY_PATH}'; load"

${PHARO} eval --save "Deprecation raiseWarning: false."
${PHARO} eval --save "Deprecation showWarning: false."
Expand Down
140 changes: 139 additions & 1 deletion src/BaselineOfPillar/BaselineOfPillar.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,109 @@ Class {
BaselineOfPillar >> baseline: spec [

<baseline>
spec for: #common do: [ spec package: 'Pillar-Core' ]
spec for: #common do: [
self
chrysal: spec;
containersPropertyEnvironment: spec;
microdown: spec;
mustache: spec;
petitParser2: spec.

spec
package: 'Pillar-MicrodownToPillarConverter' with: [ spec requires: #( 'Pillar-Core' 'Microdown' ) ];
package: 'Pillar-ExporterMicrodown' with: [ spec requires: #( 'Microdown' 'Pillar-PetitPillar' 'Pillar-ExporterCore' ) ];
package: 'Pillar-Core';
package: 'Pillar-Tests-Core' with: [ spec requires: #( 'Pillar-Core' 'Pillar-ExporterText' 'Pillar-ExporterPillar' 'Pillar-PetitPillar' ) ];
package: 'Pillar-Model' with: [ spec requires: #( 'Pillar-Core' ) ];
package: 'Pillar-Chrysal-Generator' with: [ spec requires: #( 'Chrysal' ) ];
package: 'Pillar-Cli' with: [ spec requires: #( 'Pillar-ExporterCore' 'Pillar-Chrysal' ) ];
package: 'Pillar-Chrysal' with: [ spec requires: #( 'Pillar-ExporterCore' ) ];
package: 'Pillar-ExporterAsciiDoc' with: [ spec requires: #( 'Pillar-ExporterCore' ) ];
package: 'Pillar-ExporterBeamer' with: [ spec requires: #( 'Pillar-ExporterLaTeX' ) ];
package: 'Pillar-ExporterCore' with: [ spec requires: #( 'Pillar-Model' 'ContainersPropertyEnvironment' ) ];
package: 'Pillar-ExporterDeckJS' with: [ spec requires: #( 'Pillar-ExporterHTML' ) ];
package: 'Pillar-ExporterEPub' with: [ spec requires: #( 'Pillar-ExporterCore' 'Pillar-ExporterHTML' ) ];
package: 'Pillar-Tests-ExporterEPub' with: [ spec requires: #( 'Pillar-ExporterEPub' 'Pillar-Tests-ExporterCore' 'Pillar-Tests-ExporterHTML' ) ];
package: 'Pillar-ExporterHTML' with: [ spec requires: #( 'Pillar-ExporterCore' ) ];
package: 'Pillar-ExporterLaTeX' with: [ spec requires: #( 'Pillar-ExporterCore' 'Pillar-ExporterPillar' ) ];
package: 'Pillar-ExporterMarkdown' with: [ spec requires: #( 'Pillar-ExporterCore' 'Pillar-ExporterHTML' ) ];
package: 'Pillar-ExporterPillar' with: [ spec requires: #( 'Pillar-ExporterCore' 'Pillar-PetitPillar' ) ];
package: 'Pillar-ExporterText' with: [ spec requires: #( 'Pillar-ExporterCore' ) ];
package: 'Pillar-CodeBlockEvaluator' with: [ spec requires: #( 'Pillar-Core' ) ];
package: 'Pillar-PetitPillar' with: [ spec requires: #( 'PetitParser2Core' 'Pillar-Model' ) ];
package: 'Pillar-Pharo-Tools' with: [ spec requires: #( 'Pillar-Model' 'All exporters' ) ];
package: 'Pillar-Project' with: [ spec requires: #( 'Pillar-Model' 'All exporters' ) ];
package: 'Pillar-BookTester' with: [ spec requires: #( 'Pillar-Project' ) ];
package: 'Pillar-Tests-Cli' with: [ spec requires: #( 'Pillar-Cli' ) ];
package: 'Pillar-Tests-ExporterAsciiDoc' with: [ spec requires: #( 'Pillar-ExporterAsciiDoc' 'Pillar-Tests-ExporterCore' ) ];
package: 'Pillar-Tests-ExporterBeamer' with: [ spec requires: #( 'Pillar-ExporterBeamer' 'Pillar-Tests-ExporterLaTeX' ) ];
package: 'Pillar-Tests-ExporterCore' with: [ spec requires: #( 'Pillar-Tests-Model' 'Pillar-ExporterCore' ) ];
package: 'Pillar-Tests-ExporterDeckJS' with: [ spec requires: #( 'Pillar-ExporterDeckJS' 'Pillar-Tests-ExporterHTML' ) ];
package: 'Pillar-Tests-ExporterHTML' with: [ spec requires: #( 'Pillar-ExporterHTML' 'Pillar-Tests-ExporterCore' ) ];
package: 'Pillar-Tests-ExporterLaTeX' with: [ spec requires: #( 'Pillar-ExporterLaTeX' 'Pillar-Tests-ExporterCore' ) ];
package: 'Pillar-Tests-ExporterMarkdown' with: [ spec requires: #( 'Pillar-ExporterMarkdown' 'Pillar-Tests-ExporterCore' 'Pillar-Tests-ExporterHTML' ) ];
package: 'Pillar-Tests-ExporterPillar' with: [ spec requires: #( 'Pillar-ExporterPillar' 'Pillar-Tests-ExporterCore' ) ];
package: 'Pillar-Tests-ExporterText' with: [ spec requires: #( 'Pillar-ExporterText' 'Pillar-Tests-ExporterCore' ) ];
package: 'Pillar-Tests-Model' with: [ spec requires: #( 'Pillar-Model' 'Pillar-ExporterPillar' 'Pillar-ExporterText' 'Pillar-Core' 'Pillar-Tests-PetitPillar' ) ];
package: 'Pillar-Tests-Model-PetitPillar' with: [ spec requires: #( 'Pillar-Core' 'Pillar-Tests-Core' 'Pillar-Tests-Model' 'Pillar-PetitPillar' 'Pillar-Model' 'Pillar-Tests-PetitPillar' ) ];
package: 'Pillar-Tests-Model-ExporterText' with: [ spec requires: #( 'Pillar-Core' 'Pillar-PetitPillar' 'Pillar-Tests-ExporterText' ) ];
package: 'Pillar-Tests-Model-ExporterPillar' with: [ spec requires: #( 'Pillar-Model' 'Pillar-PetitPillar' 'Pillar-Tests-ExporterPillar' ) ];
package: 'Pillar-Tests-PetitPillar' with: [ spec requires: #( 'PetitParser2Core' 'Pillar-PetitPillar' ) ];
package: 'Pillar-Tests-BookTester' with: [ spec requires: #( 'Pillar-BookTester' ) ];
package: 'Pillar-Tests-Project' with: [ spec requires: #( 'Pillar-Project' ) ];
package: 'Pillar-Tests-Integration' with: [ spec requires: #( 'Pillar-Project' ) ].

spec
group: 'ALL' with: #( 'All tests' 'All but tests' );
group: 'All but tests' with: #( 'All exporters' 'Pillar-Cli' 'Pillar-Pharo-Tools' 'parser' 'Pillar-Project' 'Pillar-BookTester' 'Pillar-CodeBlockEvaluator' );
group: 'All exporter tests' with: #( 'html exporter tests' 'latex exporter tests' 'beamer exporter tests' 'deckjs exporter tests' 'markdown exporter tests' 'pillar exporter tests' 'text exporter tests' 'asciidoc exporter tests' 'ePub exporter tests' );
group: 'All exporters' with: #( 'html exporter' 'latex exporter' 'beamer exporter' 'deckjs exporter' 'markdown exporter' 'pillar exporter' 'text exporter' 'asciidoc exporter' 'ePub exporter' );
group: 'All tests' with: #( 'All exporter tests' 'Pillar-Tests-Model' 'Pillar-Tests-ExporterCore' #'Pillar-Tests-Cli' 'parser tests' 'Pillar-Tests-Project' 'Pillar-Tests-Integration' );
group: 'asciidoc exporter' with: #( #'Pillar-ExporterAsciiDoc' );
group: 'asciidoc exporter tests' with: #( #'Pillar-Tests-ExporterAsciiDoc' 'ePub exporter' );
group: 'beamer exporter' with: #( 'Pillar-ExporterBeamer' );
group: 'beamer exporter tests' with: #( 'Pillar-Tests-ExporterBeamer' );
group: 'deckjs exporter' with: #( 'Pillar-ExporterDeckJS' );
group: 'deckjs exporter tests' with: #( 'Pillar-Tests-ExporterDeckJS' );
group: 'ePub exporter' with: #( #'Pillar-ExporterEPub' );
group: 'ePub exporter tests' with: #( #'Pillar-Tests-ExporterEPub' );
group: 'html exporter' with: #( 'Pillar-ExporterHTML' );
group: 'html exporter tests' with: #( 'Pillar-Tests-ExporterHTML' );
group: 'booktester' with: #( 'Pillar-BookTester' );
group: 'booktester tests' with: #( 'Pillar-Tests-BookTester' );
group: 'latex exporter' with: #( 'Pillar-ExporterLaTeX' );
group: 'latex exporter tests' with: #( 'Pillar-Tests-ExporterLaTeX' );
group: 'markdown exporter' with: #( 'Pillar-ExporterMarkdown' 'parser' );
group: 'markdown exporter tests' with: #( 'Pillar-Tests-ExporterMarkdown' );
group: 'parser' with: #( 'Pillar-PetitPillar' );
group: 'parser tests' with: #( 'Pillar-Tests-PetitPillar' );
group: 'pillar exporter' with: #( 'Pillar-ExporterPillar' );
group: 'pillar exporter tests' with: #( 'Pillar-Tests-ExporterPillar' );
group: 'text exporter' with: #( 'Pillar-ExporterText' );
group: 'text exporter tests' with: #( 'Pillar-Tests-ExporterText' );
group: 'Core' with: #( 'Pillar-Core' );
group: 'Model' with: #( 'Pillar-Model' ) ].

spec for: #windows do: [
self processWrapper: spec.
spec package: 'Pillar-Project' with: [ spec requires: 'ProcessWrapper' ] ].


spec for: #( unix osx ) do: [
self osSubProcess: spec.
spec package: 'Pillar-Project' with: [ spec requires: 'OSSubprocess' ] ]
]

{ #category : #dependencies }
BaselineOfPillar >> chrysal: spec [

spec baseline: 'Chrysal' with: [ spec repository: 'github://Ducasse/Chrysal:v1.0.0/src' ]
]

{ #category : #dependencies }
BaselineOfPillar >> containersPropertyEnvironment: spec [

spec baseline: 'ContainersPropertyEnvironment' with: [ spec repository: 'github://Ducasse/Containers-PropertyEnvironment:v1.0.0' ]
]

{ #category : #baselines }
Expand All @@ -23,3 +125,39 @@ BaselineOfPillar >> customProjectAttributes [
OSPlatform current isMacOS ifTrue: [ attributes add: #osx ].
^ attributes asArray
]

{ #category : #dependencies }
BaselineOfPillar >> microdown: spec [

spec baseline: 'Microdown' with: [ spec repository: 'github://pillar-markup/Microdown:v2.5.0/src' ]
]

{ #category : #dependencies }
BaselineOfPillar >> mustache: spec [

spec baseline: 'Mustache' with: [
spec
repository: 'github://noha/mustache:v1.0/repository';
loads: #( 'Core' 'Tests' ) ]
]

{ #category : #dependencies }
BaselineOfPillar >> osSubProcess: spec [

spec baseline: 'OSSubprocess' with: [ spec repository: 'github://pharo-contributions/OSSubprocess:v2.0.0/repository' ]
]

{ #category : #dependencies }
BaselineOfPillar >> petitParser2: spec [

spec baseline: 'PetitParser2Core' with: [ spec repository: 'github://kursjan/petitparser2' ]
]

{ #category : #dependencies }
BaselineOfPillar >> processWrapper: spec [

spec configuration: 'ProcessWrapper' with: [
spec
versionString: '1.2';
repository: 'http://smalltalkhub.com/mc/hernan/ProcessWrapper/main' ]
]
171 changes: 0 additions & 171 deletions src/BaselineOfPillarApp/BaselineOfPillarApp.class.st

This file was deleted.

1 change: 0 additions & 1 deletion src/BaselineOfPillarApp/package.st

This file was deleted.

Loading

0 comments on commit 75b718c

Please sign in to comment.