-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from ba-st/pharo_10
Add Pharo 10 support
- Loading branch information
Showing
29 changed files
with
222 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*.st linguist-language=Smalltalk | ||
*.st eol=lf | ||
*.st text diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Baseline groups | ||
|
||
on: [push,pull_request,workflow_dispatch] | ||
|
||
jobs: | ||
group-loading: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
smalltalk: [ Pharo64-10, Pharo64-9.0, Pharo64-8.0 ] | ||
load-spec: [ deployment, tests, development, tools ] | ||
name: ${{ matrix.smalltalk }} + ${{ matrix.load-spec }} | ||
services: | ||
rabbitmq: | ||
image: rabbitmq:latest | ||
ports: | ||
- 5672:5672 | ||
options: --health-cmd "rabbitmqctl node_health_check" --health-interval 10s --health-timeout 5s --health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: hpi-swa/setup-smalltalkCI@v1 | ||
with: | ||
smalltalk-image: ${{ matrix.smalltalk }} | ||
- name: Load group in image | ||
run: smalltalkci -s ${{ matrix.smalltalk }} .smalltalkci/.loading.${{ matrix.load-spec }}.ston | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
timeout-minutes: 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'Ansible', | ||
#directory : '../source', | ||
#load : [ 'Deployment' ], | ||
#platforms : [ #pharo ] | ||
} | ||
], | ||
#testing : { | ||
#failOnZeroTests : false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'Ansible', | ||
#directory : '../source', | ||
#load : [ 'Development' ], | ||
#platforms : [ #pharo ] | ||
} | ||
], | ||
#testing : { | ||
#failOnZeroTests : false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'Ansible', | ||
#directory : '../source', | ||
#load : [ 'Tests' ], | ||
#platforms : [ #pharo ] | ||
} | ||
], | ||
#testing : { | ||
#failOnZeroTests : false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'Ansible', | ||
#directory : '../source', | ||
#load : [ 'Tools' ], | ||
#platforms : [ #pharo ] | ||
} | ||
], | ||
#testing : { | ||
#failOnZeroTests : false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# How to load Ansible in a Pharo image | ||
|
||
## Using Metacello | ||
|
||
1. Download a [Pharo VM and image](https://pharo.org/download) | ||
2. Open your Pharo image | ||
3. Open a Playground | ||
4. Evaluate: | ||
|
||
```smalltalk | ||
Metacello new | ||
baseline: 'Ansible'; | ||
repository: 'github://ba-st/Ansible:release-candidate'; | ||
load: 'Development'. | ||
``` | ||
> Change `release-candidate` to some released version if you want a pinned version | ||
## Using Iceberg | ||
1. Download [pharo VM and image](https://pharo.org/download) | ||
2. Open your Pharo image | ||
3. Open Iceberg | ||
4. Click the *Add* repository button | ||
5. Select *Clone from github.com* and enter `ba-st` as owner name and `Ansible` | ||
as project name | ||
6. Click *Ok* | ||
7. Select the repository in the main Iceberg window | ||
8. Open the contextual menu and select | ||
*Metacello -> Install baseline of Ansible ...* | ||
9. Type `Development` and click *Ok* | ||
> After Iceberg cloned a repository, it will be checked-out at the default | ||
> branch (in this case `release-candidate`). If you want to work on a different | ||
> branch or commit, perform the checkout before the baseline installation step. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# How to use Ansible as dependency in a Pharo product | ||
|
||
In order to include **Ansible** as part of your project, you should reference | ||
the package in your product baseline: | ||
|
||
1. Define the Ansible repository and version to be used, and the [baseline groups](../reference/Baseline-groups.md) | ||
you want to depend on (usually it will be `Deployment`). | ||
|
||
If you're unsure on what to depend use the *Dependency Analyzer* | ||
tool to choose an appropriate group including the packages you need. | ||
|
||
2. Create a method like this one in the baseline class of your product: | ||
|
||
```smalltalk | ||
setUpDependencies: spec | ||
spec | ||
baseline: 'Ansible' | ||
with: [ spec repository: 'github://github://ba-st/Ansible:v{XX}' ]; | ||
project: 'Ansible-Deployment' | ||
copyFrom: 'Ansible' with: [ spec loads: 'Deployment' ] | ||
``` | ||
This will create `Ansible-Deployment` as a valid target that can be used | ||
as requirement in your own packages. | ||
> Replace `{XX}` with the version you want to depend on | ||
3. Use the new loading target as a requirement on your packages. For example: | ||
```smalltalk | ||
baseline: spec | ||
<baseline> | ||
spec | ||
for: #pharo | ||
do: [ | ||
self setUpDependencies: spec. | ||
spec | ||
package: 'My-Package' | ||
with: [ spec requires: #('Ansible-Deployment') ] ] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Baseline Groups | ||
|
||
Ansible includes the following groups in its Baseline that can be used as | ||
loading targets: | ||
|
||
- `Deployment` will load all the packages needed in a deployed application | ||
- `Tests` will load the test cases | ||
- `Tools` will load tooling extensions | ||
- `CI` is the group loaded in the continuous integration setup, in this | ||
particular case it is the same as `Tests` | ||
- `Development` will load all the needed packages to develop and contribute to | ||
the project |
Oops, something went wrong.