-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjustfile
More file actions
35 lines (28 loc) · 2.2 KB
/
justfile
File metadata and controls
35 lines (28 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Examples showcasing PyOci
mod examples 'docs/examples'
# Run tests with coverage, requires cargo-llvm-cov. Add `--open` to open the report in the browser.
[group("ci")]
test-coverage *args:
cargo llvm-cov --lcov --output-path lcov.info
cargo llvm-cov report {{args}}
# Recreate the OCI registry, clears it's package cache
[group("setup")]
refresh-registry:
docker compose -f docker/docker-compose.yaml up --build --force-recreate --wait pyoci registry
# Run a smoketest on a local pyoci instance and a local OCI registry
[group("ci")]
test-smoke: refresh-registry
just examples::poetry-publish "0.1.0+1234.poetry" "foo" "bar" "http://localhost:8080/http%3A%2F%2Fregistry%3A5000/pyoci/"
just examples::poetry-install "0.1.0+1234.poetry" "foo" "bar" "http://localhost:8080/http%3A%2F%2Fregistry%3A5000/pyoci/"
just examples::curl-list-json "foo" "bar" "http://localhost:8080/http%3A%2F%2Fregistry%3A5000/pyoci/"
just examples::curl-delete "0.1.0+1234.poetry" "foo" "bar" "http://localhost:8080/http%3A%2F%2Fregistry%3A5000/pyoci/"
just examples::uv-publish "0.1.0+1234.uv" "foo" "bar" "http://localhost:8080/http%3A%2F%2Fregistry%3A5000/pyoci/"
just examples::uv-install "0.1.0+1234.uv" "foo" "bar" "http://localhost:8080/http%3A%2F%2Fregistry%3A5000/pyoci/"
just examples::curl-delete "0.1.0+1234.uv" "foo" "bar" "http://localhost:8080/http%3A%2F%2Fregistry%3A5000/pyoci/"
# index with sub-namespaces
just examples::poetry-publish "0.1.0+1234.poetry" "foo" "bar" "http://localhost:8080/http%3A%2F%2Fregistry%3A5000/pyoci/python/sub/"
just examples::poetry-install "0.1.0+1234.poetry" "foo" "bar" "http://localhost:8080/http%3A%2F%2Fregistry%3A5000/pyoci/python/sub/"
just examples::curl-delete "0.1.0+1234.poetry" "foo" "bar" "http://localhost:8080/http%3A%2F%2Fregistry%3A5000/pyoci/python/sub/"
just examples::uv-publish "0.1.0+1234.uv" "foo" "bar" "http://localhost:8080/http%3A%2F%2Fregistry%3A5000/pyoci/python/sub/"
just examples::uv-install "0.1.0+1234.uv" "foo" "bar" "http://localhost:8080/http%3A%2F%2Fregistry%3A5000/pyoci/python/sub/"
just examples::curl-delete "0.1.0+1234.uv" "foo" "bar" "http://localhost:8080/http%3A%2F%2Fregistry%3A5000/pyoci/python/sub/"