Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pelican-theme-teckids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Teckids
Team PR
pelican-theme-teckids
Commits
8d1044fc
Verified
Commit
8d1044fc
authored
3 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Add Makefile for compiling messages
parent
b00b9238
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+4
-6
4 additions, 6 deletions
.gitlab-ci.yml
Makefile
+13
-0
13 additions, 0 deletions
Makefile
with
17 additions
and
6 deletions
.gitlab-ci.yml
+
4
−
6
View file @
8d1044fc
...
...
@@ -13,16 +13,14 @@ build_dist:
interruptible
:
true
stage
:
build
before_script
:
-
pip3 install poetry tox
-
apt update
-
apt install sudo
-
id testuser || adduser --disabled-password --gecos "Test User" testuser
-
chown -R testuser .
-
pip3 install poetry babel
-
apt -y update
-
apt -y install make
script
:
-
if ! [ x$CI_COMMIT_REF_NAME = x$CI_COMMIT_TAG ]; then
poetry version $(poetry version | cut -d" " -f2)+$(date --date=${CI_COMMIT_TIMESTAMP} +%Y%m%d%H%M%S);
fi
-
sudo -u testuser poetry build
-
make dist
artifacts
:
paths
:
-
dist/
...
...
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
13
−
0
View file @
8d1044fc
messages.pot
:
pelican_theme_teckids/templates/*.html babel.cfg
pybabel extract
--mapping
babel.cfg
--output
messages.pot
pelican_theme_teckids/translations/en/LC_MESSAGES/messages.po
:
messages.pot
pybabel update
--input-file
messages.pot
--output-dir
pelican_theme_teckids/translations/
--locale
en
--domain
messages
pelican_theme_teckids/translations/en/LC_MESSAGES/messages.mo
:
pelican_theme_teckids/translations/en/LC_MESSAGES/messages.po
pybabel compile
--directory
pelican_theme_teckids/translations/
--domain
messages
dist
:
pelican_theme_teckids/translations/en/LC_MESSAGES/messages.mo
poetry build
.PHONY
:
dist
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment