Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation on running RegistryCI on a registry. #80

Merged
merged 1 commit into from
Jan 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,4 @@ will look for a package in the current directory.
* [Migrating Packages from the General Registry](docs/migration_from_general.md)
* [Using LocalRegistry on a Shared Filesysem](docs/shared_filesystem.md)
* [Delete a Registered Package](docs/delete_package.md)
* [Registry Consistency Testing](docs/registry_ci.md)
41 changes: 41 additions & 0 deletions docs/registry_ci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Registry Consistency Testing

For trouble-shooting, or as good practice if you have your registry
set up with CI (Continuous Integration), you can run the registry
consistency tests from the
[RegistryCI](https://github.com/JuliaRegistries/RegistryCI.jl)
package on your registry.

In the following sections it is assumed that all packages in your
registry have all their dependencies registerad either in your own
registry or in the General registry, which is the typical scenario.

## Manual Testing

Add RegistryCI
```
pkg> add RegistryCI
```
and run the consistency tests:
```
using RegistryCI
withenv("JULIA_PKG_UNPACK_REGISTRY" => "true") do
RegistryCI.test(path_to_your_registry, registry_deps = ["General"])
end
```

## CI Testing

The idea is the same as for manual testing. A sample GitLab CI job for
your registry repository can look something like:
```
registry consistency test:
stage: test
variables:
JULIA_PKG_UNPACK_REGISTRY: "true"
script:
- git config --global user.name $GITLAB_USER_NAME
- git config --global user.email $GITLAB_USER_EMAIL
- julia -e 'using Pkg; Pkg.add("RegistryCI")'
- julia --color=yes -e 'using RegistryCI; RegistryCI.test(@__DIR__, registry_deps = ["General"])'
```
Loading