Skip to content

Conversation

@alex-hhh
Copy link
Collaborator

This sets up a CI build for the plot package, scheduled to run for pushes and pull requests. Currently it only runs for Racket version 7.7 and it does not run the tests. Tests need are currently run manually and their output visually inspected.

It is inspired by the web-server CI build, but uses a different strategy for the build:

  • minimal racket is installed
  • a package catalog is setup for the packages in the plot repository
  • this package catalog is added to the default racket catalogs
  • the plot package is installed -- this will fetch packages form the local file system and build them, and will fetch all dependencies from the main racket catalog.

NOTE: there are several commits in this branch, as I was experimenting with different approaches, but I will squash the commits when merged to the master branch, so only one commit shows up.

@alex-hhh alex-hhh requested a review from samth June 30, 2020 12:55
racket-variant: ["regular"]
steps:
- uses: actions/checkout@master
- uses: Bogdanp/setup-racket@v0.3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend using the latest version, which is 0.8 right now.

- run: raco pkg config --set catalogs `cat catalogs.txt`
- run: raco pkg config catalogs
- run: sudo raco pkg install --batch --auto plot
# - run: raco test --drdr plot-test/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runs-on: ubuntu-latest
strategy:
matrix:
racket-version: ["7.7"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably good to test snapshots as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the "current" as well as CS variants for Racket to the built, although, I am not convinced of their value to the build of plot -- "current" will be tested once the changes are merged to master anyway. OTOH, we don't pay for the build VM time...

@alex-hhh alex-hhh merged commit 5d880bd into master Jun 30, 2020
@alex-hhh alex-hhh deleted the ah/ci branch June 30, 2020 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants