Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Clocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
48
Issues
48
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
Clocks
Commits
ed55ffb0
Commit
ed55ffb0
authored
Oct 05, 2020
by
Bilal Elmoussaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: generate & publish docs
why not? also could help with newcomers
parent
ab00ab9a
Pipeline
#219013
passed with stage
in 6 minutes and 1 second
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
1 deletion
+51
-1
.gitlab-ci.yml
.gitlab-ci.yml
+14
-0
build-aux/flatpak/org.gnome.clocks.json
build-aux/flatpak/org.gnome.clocks.json
+2
-1
meson.build
meson.build
+1
-0
meson_options.txt
meson_options.txt
+2
-0
src/meson.build
src/meson.build
+32
-0
No files found.
.gitlab-ci.yml
View file @
ed55ffb0
...
@@ -19,3 +19,17 @@ lint:
...
@@ -19,3 +19,17 @@ lint:
image
:
"
valalang/lint:latest"
image
:
"
valalang/lint:latest"
script
:
script
:
-
io.elementary.vala-lint src
-
io.elementary.vala-lint src
docs
:
image
:
"
fedora:latest"
script
:
-
dnf install -y git valadoc vala meson glib2-devel gtk3-devel libhandy1-devel gsound-devel gnome-desktop3-devel libgweather-devel geoclue2-devel
-
meson -Ddocs=true _build
-
meson compile -C _build
-
rm -rf public
-
mv _build/docs public
artifacts
:
paths
:
-
public
# rules:
# - if: '$CI_COMMIT_BRANCH == "master"'
\ No newline at end of file
build-aux/flatpak/org.gnome.clocks.json
View file @
ed55ffb0
...
@@ -132,7 +132,8 @@
...
@@ -132,7 +132,8 @@
"name"
:
"gnome-clocks"
,
"name"
:
"gnome-clocks"
,
"buildsystem"
:
"meson"
,
"buildsystem"
:
"meson"
,
"config-opts"
:
[
"config-opts"
:
[
"-Dprofile=development"
"-Dprofile=development"
,
"-Ddocs=false"
],
],
"sources"
:
[
"sources"
:
[
{
{
...
...
meson.build
View file @
ed55ffb0
...
@@ -21,6 +21,7 @@ geocodeglib = dependency('geocode-glib-1.0', version: '>=1.0')
...
@@ -21,6 +21,7 @@ geocodeglib = dependency('geocode-glib-1.0', version: '>=1.0')
libgeoclue = dependency('libgeoclue-2.0', version: '>=2.4')
libgeoclue = dependency('libgeoclue-2.0', version: '>=2.4')
libhandy = dependency ('libhandy-1', version: '>= 1.0.0', required: false)
libhandy = dependency ('libhandy-1', version: '>= 1.0.0', required: false)
libhandy_subproj = libhandy
if not libhandy.found()
if not libhandy.found()
libhandy_subproj = subproject(
libhandy_subproj = subproject(
'libhandy',
'libhandy',
...
...
meson_options.txt
View file @
ed55ffb0
...
@@ -8,3 +8,5 @@ option(
...
@@ -8,3 +8,5 @@ option(
value: 'default',
value: 'default',
description: 'The build profile for Clock. One of "default" or "development".'
description: 'The build profile for Clock. One of "default" or "development".'
)
)
option('docs', type : 'boolean', value : false)
\ No newline at end of file
src/meson.build
View file @
ed55ffb0
...
@@ -82,3 +82,35 @@ executable('gnome-clocks', clocks_sources,
...
@@ -82,3 +82,35 @@ executable('gnome-clocks', clocks_sources,
dependencies: clocks_dependencies,
dependencies: clocks_dependencies,
install: true
install: true
)
)
if get_option('docs')
valadoc = find_program('valadoc')
custom_target('docs',
input: clocks_vala_sources,
output: 'docs',
command: [
valadoc,
'--doclet=html',
'--force',
'--package-name=@0@'.format(meson.project_name()),
'--package-version=@0@'.format(meson.project_version()),
'--pkg=glib-2.0',
'--pkg=gio-2.0',
'--pkg=gio-unix-2.0',
'--pkg=gtk+-3.0',
'--pkg=gobject-2.0',
'--pkg=libhandy-1',
'--pkg=gsound',
'--pkg=gweather-3.0',
'--pkg=gnome-desktop-3.0',
'--pkg=geocode-glib-1.0',
'--pkg=libgeoclue-2.0',
'--pkg=config',
'--directory=@OUTDIR@/../docs',
'--vapidir=@0@'.format(meson.current_source_dir()),
'--use-svg-images',
clocks_vala_sources
],
build_by_default: true,
)
endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment