Skip to content

Commit

Permalink
Merge pull request #24 from jecisc/fix-tests
Browse files Browse the repository at this point in the history
Enable CI and fix tests
  • Loading branch information
tesonep authored Oct 12, 2023
2 parents 25999ae + 30362c9 commit af92da4
Show file tree
Hide file tree
Showing 192 changed files with 1,101 additions and 926 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/*.st linguist-language=Smalltalk
2 changes: 2 additions & 0 deletions .github/scripts/preLoading.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"Remove Hermes from system (so I can reload it)"
(RPackageOrganizer default packages select: [:package | package name beginsWith: 'Hermes']) do: [:package | package removeFromSystem ].
21 changes: 21 additions & 0 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
smalltalk: [ Pharo64-10, Pharo64-11, Pharo64-12 ]
name: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v3
- uses: hpi-swa/setup-smalltalkCI@v1
with:
smalltalk-version: ${{ matrix.smalltalk }}
- run: smalltalkci -s ${{ matrix.smalltalk }}
shell: bash
timeout-minutes: 15
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# changes file
*.changes

# system image
*.image

# Pharo Smalltalk Debug log file
PharoDebug.log

# Squeak Smalltalk Debug log file
SqueakDebug.log

# Monticello package cache
/package-cache

# playground cache
/play-cache
/play-stash

# Metacello-github cache
/github-cache
github-*.zip

**/.DS_STORE
2 changes: 1 addition & 1 deletion .project
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
'srcDirectory' : ''
'srcDirectory' : 'src'
}
9 changes: 9 additions & 0 deletions .smalltalk.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
SmalltalkCISpec {
#preLoading : '.github/scripts/preLoading.st',
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'Hermes',
#directory : 'src'
}
]
}
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

30 changes: 0 additions & 30 deletions BaselineOfHermes/BaselineOfHermes.class.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/Array.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/Association.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/Boolean.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/ByteArray.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/ByteString.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/ByteSymbol.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/Character.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/ClassVariable.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/CompiledBlock.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/CompiledMethod.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/Float.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/Fraction.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/GlobalVariable.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/HEUndefinedObject.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/Integer.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/MetaclassForTraits.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/Pragma.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/ScaledDecimal.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/Trait.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/UndeclaredVariable.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/UndefinedObject.extension.st

This file was deleted.

6 changes: 0 additions & 6 deletions Hermes-Exporter/WideString.extension.st

This file was deleted.

1 change: 0 additions & 1 deletion Hermes-Exporter/package.st

This file was deleted.

7 changes: 0 additions & 7 deletions Hermes-Ring2/RGEnvironment.extension.st

This file was deleted.

7 changes: 0 additions & 7 deletions Hermes-Ring2/RGLayout.extension.st

This file was deleted.

1 change: 0 additions & 1 deletion Hermes-Ring2/package.st

This file was deleted.

1 change: 0 additions & 1 deletion Hermes-Tests/package.st

This file was deleted.

1 change: 0 additions & 1 deletion Hermes/package.st

This file was deleted.

9 changes: 0 additions & 9 deletions scripts/disable-deprecation-warning.sh

This file was deleted.

5 changes: 0 additions & 5 deletions scripts/download.sh

This file was deleted.

32 changes: 0 additions & 32 deletions scripts/install-packages.sh

This file was deleted.

File renamed without changes.
38 changes: 38 additions & 0 deletions src/BaselineOfHermes/BaselineOfHermes.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Class {
#name : #BaselineOfHermes,
#superclass : #BaselineOf,
#category : #BaselineOfHermes
}

{ #category : #baselines }
BaselineOfHermes >> baseline: spec [
<baseline>
spec for: #common do: [

spec
package: 'Hermes';
package: 'Hermes-Exporter' with: [ spec requires: #('Hermes') ];
package: 'Hermes-Extensions' with: [ spec requires: #('Hermes') ];

package: 'Hermes-Ring2' with: [ spec requires: #('Hermes-Exporter') ];

package: 'Hermes-Tests-Classes';
package: 'Hermes-Tests-External-Package';
package: 'Hermes-Tests' with: [ spec requires: #('core' 'Hermes-Tests-Classes' 'Hermes-Tests-External-Package') ];
package: 'Hermes-Tests-Ring' with: [ spec requires: #('core' 'Hermes-Tests-External-Package') ];

group: 'core' with: #('Hermes' 'Hermes-Exporter' 'Hermes-Extensions' 'Hermes-Ring2');
group: 'minimal' with: #('Hermes');
group: 'test' with: #('Hermes-Tests' 'Hermes-Tests-Classes' 'Hermes-Tests-External-Package')
].

spec for: (self pharoVersionsFrom: 11) do: [
spec
package: 'Hermes-Exporter' with: [ spec includes: #( 'Hermes-Exporter-Pharo11' ) ];
package: 'Hermes-Exporter-Pharo11' ]
]

{ #category : #baselines }
BaselineOfHermes >> pharoVersionsFrom: aVersion [
^ (aVersion to: SystemVersion current major) collect: [ :v | ('pharo' , v asString , '.x') asSymbol ]
]
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #ConstantBlockClosure }

{ #category : #'*Hermes-Exporter' }
{ #category : #'*Hermes-Exporter-Pharo11' }
ConstantBlockClosure >> asExportedLiteral [

^ HEConstantBlock for: self
Expand Down
Loading

0 comments on commit af92da4

Please sign in to comment.