Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9342532
Makefile
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
996 B
Subscribers
None
Makefile
View Options
FLAKE = flake8
BINDIR = bin
SRCDIR = sgloader
REPO_PATH=$(HOME)/work/inria/repo/org-beamer-swh
# add -v for example
FLAG=
NOSE = nosetests3
TESTFLAGS = -s
TESTDIR = ./tests
DB=swhgitloader
DB_TEST=swhgitloader-test
deps:
sudo apt-get install -y python3 python3-pygit2 python3-psycopg2 python3-nose
prepare:
mkdir -p log dataset
clean:
rm -rf ./log
rm -rf ./dataset/
cleandb: clean prepare
PYTHONPATH=`pwd` $(BINDIR)/sgloader $(FLAG) cleandb
run: clean prepare
PYTHONPATH=`pwd` $(BINDIR)/sgloader $(FLAG) --repo-path $(REPO_PATH) initdb
check:
$(FLAKE) $(BINDIR)/sgloader $(SRCDIR)/*.py
profile:
python3 -m cProfile profile.py
test:
$(NOSE) $(TESTFLAGS) $(TESTDIR)
test-connect-db:
psql -d $(DB_TEST)
test-drop-db:
sudo su -l postgres -c "dropdb $(DB_TEST)"
test-create-db:
sudo su -l postgres -c "createdb -O $(USER) $(DB_TEST)"
connect-db:
psql -d $(DB)
drop-db:
sudo su -l postgres -c "dropdb $(DB)"
create-db:
sudo su -l postgres -c "createdb -O $(USER) $(DB)"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 4, 12:48 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3406495
Attached To
rDLDG Git loader
Event Timeline
Log In to Comment