Unverified Commit 67b6f587 authored by Caleb Maclennan's avatar Caleb Maclennan
Browse files

Use CI environment variable to fetch Google sheet

parent 07c79b98
......@@ -28,7 +28,7 @@ $(foreach SUBMODULE,$(SUBMODULES),$(eval $(call SUBMODULEMAKE,$(SUBMODULE))))
.PHONY: init_ccmtoolkit_language
init_ccmtoolkit_language: $(call pattern_list,$(SUBMODULES),__init)
hash weasyprint
pip install --user -U pantable
python -c "import pantable"
.PHONY: clean_ccmtoolkit_language
clean_ccmtoolkit_language: $(call pattern_list,$(SUBMODULES),__clean)
......@@ -48,8 +48,12 @@ combined-worklogs.sqlite: repository-worklog.sqlite $(foreach SUBMODULE,$(SUBMOD
grep '^INSERT' |
sqlite3 $@
combined-daylog.csv:
cat /dev/null > $@
combined-daylog.csv: force
if -z $(TIMESHEETDOC); then
touch $@
else
curl -s -L "https://docs.google.com/spreadsheets/d/$(TIMESHEETDOC)/export?format=csv" -o $@
fi
combined-daylog.sqlite: combined-daylog.csv
sqlite3 $@ "DROP TABLE IF EXISTS days; CREATE TABLE days (author TEXT, date DATE, start DATE, end DATE, breaks INT, sig TEXT, apr TEXT, hours INT)"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment