-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (33 loc) · 1.07 KB
/
Makefile
File metadata and controls
46 lines (33 loc) · 1.07 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
36
37
38
39
40
41
42
43
44
45
46
all: install
.PHONY: install init update_functions test dev features publish
DOCKER_IMAGE_VERSION := $(shell uv version --short)
# We centrally manage the version of Docker images for simplicity at this point
# We should get a better CI architecture eventually, or move the actual API
# definition to the Macrostrat repository.
publish:
# Ensure we have an empty index
uv lock
git diff-index --quiet HEAD --
git tag -a v$(DOCKER_IMAGE_VERSION) -m "Version $(DOCKER_IMAGE_VERSION)"
git push origin tag v$(DOCKER_IMAGE_VERSION)
lock:
bin/update-packages
install:
make lock
poetry install
test-docker:
bin/test-docker
test:
uv run bin/run-tests
dev:
cd frontend && poetry run npm run dev
# Outdated functions
update_functions:
cat py-packages/engine/corelle/engine/schema/*-functions.sql | psql plate-rotations
baseurl := https://raw.githubusercontent.com/martynafford/natural-earth-geojson/master
features: bin/load-features
poetry run bin/load-features --redo plate-rotations
init:
-createdb plate-rotations
poetry run corelle init --drop
poetry run bin/load-models