Trigger language meta project build on submodule master updates

parent 8b46874f
......@@ -10,7 +10,7 @@ before_script:
- make init emptypub debug
cache:
untracked: true
stats:
reports:
stage: report
tags:
- casile
......@@ -58,3 +58,13 @@ book:tr:
extends: .book
variables:
LANGUAGE: tr
update_tr:
stage: report
only:
refs:
- master
variables:
- $CI_PROJECT_NAME =~ /book_.*/
- $CI_PROJECT_NAME =~ /course_.*/
script:
- curl -X POST -F token=$DEPLOY_TOKEN -F ref=REF_NAME https://gitlab.alerque.com/api/v4/projects/175/trigger/pipeline
......@@ -71,7 +71,7 @@ $(CCMTOOLKITDIR)/language-%.yml:
curl -s -L https://raw.githubusercontent.com/umpirsky/language-list/master/data/$*/language.yaml -o $@
.PHONY: stats
stats: reports/status.pdf reports/worklog.pdf
reports: reports/status.pdf
reports/status.md: $(shell git ls-files -- '*.md') $(CCMTOOLKITDIR)/languages.yml repository-lastcommit.ts
mkdir -p $(dir $@)
......
......@@ -38,7 +38,7 @@ BOOKMANIFESTS := $(foreach BOOK,$(BOOKS),book_$(BOOK)__$(_book)_$(BOOK)-manifest
.PHONY: language $(BOOKMANIFESTS)
language: $(BOOKMANIFESTS)
stats: reports/progress.pdf reports/translations-worklog.pdf
reports: reports/progress.pdf reports/translations-worklog.pdf
combined-worklogs.sqlite: repository-worklog.sqlite $(foreach SUBMODULE,$(SUBMODULES),$(SUBMODULE)/repository-worklog.sqlite)
sqlite3 $@ 'DROP TABLE IF EXISTS commits; CREATE TABLE commits (sha TEXT, author TEXT, date DATE, file TEXT, added INT, removed 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