Skip to content

Commit 46d800b

Browse files
committed
Add justfile for commonly used dev/administrative commands
1 parent c01d2f4 commit 46d800b

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Justfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Run offline unit tests
2+
test:
3+
pytest
4+
5+
# Run tests that communicate with observatory services
6+
test-online: test
7+
pytest -m online
8+
9+
# Same as test-online but tries to guarantee no data is modified
10+
test-no-side-effect: test
11+
pytest -m online -m "not side_effect"
12+
13+
# Update LCO generated instrument file
14+
update-lco:
15+
curl https://observe.lco.global/api/instruments/ | codegen/lco/generator.py LCO > src/aeonlib/ocs/lco/instruments.py
16+
17+
# Update SOAR generated instrument file
18+
update-soar:
19+
curl https://observe.lco.global/api/instruments/ | codegen/lco/generator.py SOAR > src/aeonlib/ocs/soar/instruments.py
20+
21+
# Update SAAO generated instrument file
22+
update-saao:
23+
curl https://ocsio.saao.ac.za/api/instruments/ | codegen/lco/generator.py SAAO > src/aeonlib/ocs/saao/instruments.py
24+
25+
# Update all generated instrument files
26+
update-all: update-lco update-soar update-saao
27+
@echo "All updates completed"

0 commit comments

Comments
 (0)