Daniel Eklöf
00594648b5
ci: generate a text coverage report and tail it
2019-05-09 20:58:00 +02:00
Daniel Eklöf
654e704522
ci: pip isn't available...
2019-05-09 20:52:50 +02:00
Daniel Eklöf
6febec5733
ci: lets see if upgrading python2's setuptools helps
2019-05-09 20:50:15 +02:00
Daniel Eklöf
cf3d6a4f88
ci: even more gcovr debug
2019-05-09 20:47:51 +02:00
Daniel Eklöf
4dbc3ca295
ci: more gcovr debug
2019-05-09 20:46:08 +02:00
Daniel Eklöf
be937c109f
ci: debug: gcovr is installed, but not found by meson
2019-05-09 20:40:51 +02:00
Daniel Eklöf
2ec8b559e2
ci: generate coverage in debug build
2019-05-09 20:38:06 +02:00
Daniel Eklöf
235efd789a
meson: add a couple of expected-to-fail tests
...
Initial set of tests verifying we fail when trying to load:
a) a non-existing configuration
b) a non-regular file configuration (e.g. a directory)
c) configuration exists, but has no top-level 'bar' entry
2019-05-09 20:37:09 +02:00
Daniel Eklöf
937a684f9e
main: add -c,--config command line option
...
This option tells f00bar to load the configuration from this file
instead of searching the default locations.
2019-05-09 19:31:34 +02:00
Daniel Eklöf
f6ed729cf3
main: rename --check-config -> --validate
2019-05-09 19:24:17 +02:00
Daniel Eklöf
cfc644ba49
main: move --check-config short option from -c to -C
2019-05-09 19:22:11 +02:00
Daniel Eklöf
55c5cfab46
main: add -c,--check-config
...
When this option is used, we exit after loading the
configuration. Either with an error message and a non-zero exit
code (bad config), or no messages and a zero exit code (good config).
2019-05-09 19:20:24 +02:00
Daniel Eklöf
cb0bc20b38
bar: destroy modules in destroy(), not at the end of run()
...
This ensures we properly destroy everything when a bar has been
instantiated, but not run().
2019-05-09 19:14:29 +02:00
Daniel Eklöf
87cf6ab10f
main: use getopt() to parse command line arguments
2019-05-09 19:04:11 +02:00
Daniel Eklöf
cf4789a52e
ci: run test suite
2019-05-09 18:57:57 +02:00
Daniel Eklöf
447f7b6e07
meson: add test case that verifies f00bar can be executed
2019-05-09 18:57:03 +02:00
Daniel Eklöf
9fbadb4ab1
meson: dl is a required library
2019-05-09 18:56:53 +02:00
Daniel Eklöf
f1fad90338
meson: quote --git-dir argument
2019-05-09 18:56:40 +02:00
Daniel Eklöf
660d8165f5
PKGBUILD: add support for building from a non-git cloned source dir
2019-05-07 21:41:29 +02:00
Daniel Eklöf
99e03f2ebd
meson+PGBUILD: bump version after 1.0.2 release
2019-05-07 20:44:46 +02:00
Daniel Eklöf
7b6933265d
Merge branch 'releases/1.0'
2019-05-07 20:44:29 +02:00
Daniel Eklöf
5886cfb513
Merge remote-tracking branch 'origin/master' into releases/1.0
2019-05-07 20:43:27 +02:00
Daniel Eklöf
c1d32af58e
meson: use a local copy of wlr-layer-shell-unstable-v1.xml
...
When downloading a copy of the f00bar repository (for example, a
released version), submodules are not included.
Thus, to enable building from such source trees, use a local copy
instead.
Note: we still keep the submodule, for easy updating.
2019-05-07 20:42:19 +02:00
Daniel Eklöf
f73c4e098a
PKGBUILD: bump version
2019-05-07 20:33:43 +02:00
Daniel Eklöf
60d01f6068
meson: bump version to 1.0.2 after 1.0.1 release
2019-05-07 20:29:48 +02:00
Daniel Eklöf
0a5ade5927
Merge branch 'releases/1.0'
2019-05-07 20:29:37 +02:00
Daniel Eklöf
418f562045
Merge remote-tracking branch 'origin/master' into releases/1.0
2019-05-07 20:28:34 +02:00
Daniel Eklöf
1c9de3b704
meson: 1.0.0 has already been released, bump version to 1.0.1
2019-05-07 20:27:41 +02:00
Daniel Eklöf
cc001b5702
doc: document -v,--version option
2019-05-07 20:26:55 +02:00
Daniel Eklöf
37fe45b0d2
main: add -v,--version command line option
2019-05-07 20:24:51 +02:00
Daniel Eklöf
6753ee3dad
meson: set project version
...
Export project version with -DF00BAR_VERSION.
This is by default set to the meson project version.
However, if git is found, and we manage to run 'git describe' and 'git
branch' in the source directory, version is set to the output of that
instead.
2019-05-07 20:23:51 +02:00
Daniel Eklöf
8be1063d39
meson: print configuration result
2019-05-07 20:02:39 +02:00
Daniel Eklöf
8af8157a95
meson: set project arguments in one place
2019-05-06 22:08:13 +02:00
Daniel Eklöf
e30a2fa355
meson: require meson >= 0.48.0
2019-05-06 22:05:23 +02:00
Daniel Eklöf
89538f96fa
meson: modules: dictionaries can be added
2019-05-06 22:03:19 +02:00
Daniel Eklöf
a7e32f6a07
meson: bar: prefer single, long line
2019-05-06 21:58:45 +02:00
Daniel Eklöf
c5fca9a92d
meson: cleanup
2019-05-06 21:58:01 +02:00
Daniel Eklöf
08e21a4d3b
meson: assign get_option('core-plugins-as-shared-libraries') to variable
2019-05-06 21:49:20 +02:00
Daniel Eklöf
121b2f1575
meson: enable_x11 -> backend_x11, enable_wayland -> backend_wayland
2019-05-06 21:45:01 +02:00
Daniel Eklöf
8135313396
post-merge: undo version changes
2019-05-04 14:52:00 +02:00
Daniel Eklöf
88d4bf5b66
Merge branch 'releases/1.0'
2019-05-04 14:51:36 +02:00
Daniel Eklöf
20f065d1ca
PKGBUILD: set version
2019-05-04 14:50:52 +02:00
Daniel Eklöf
596c52fd9d
meson: set versoion
2019-05-04 14:50:44 +02:00
Daniel Eklöf
223803901c
README: remove configuration details
...
Refer to the man pages instead. Keep a simplified list of available
modules.
2019-05-04 14:39:15 +02:00
Daniel Eklöf
ea9aea8daf
cmake: remove build files (replaced with meson)
2019-05-04 11:48:20 +02:00
Daniel Eklöf
aa3e03355e
meson: -Wno-unused-result no longer needed
2019-05-04 11:28:49 +02:00
Daniel Eklöf
27a47a96ed
module/mpd: check return value of write()
...
Fixes building with -D_FORTIFY_SOURCE=2
2019-05-04 11:28:25 +02:00
Daniel Eklöf
2450cbe7a6
bar: xcb: check return values of ftruncate(), read() and write()
...
Fixes building with -D_FORTIFY_SOURCE=2
2019-05-04 11:28:17 +02:00
Daniel Eklöf
b41255dbcc
bar: wayland: check return values of ftruncate(), read() and write()
...
Fixes building with -D_FORTIFY_SOURCE=2
2019-05-04 11:27:51 +02:00
Daniel Eklöf
48da200924
particle: ignore write() return value
...
We're in a subprocess about to exit anyway, with stdout/stderr
typically closed. We can't do anything but ignore write() failures.
Fixes building with -D_FORTIFY_SOURCE=2
2019-05-04 11:26:58 +02:00