Commit Graph

10 Commits

Author SHA1 Message Date
fdf94e683f Added flawfinder code check 2021-08-04 11:03:22 +00:00
c683c5569b Added compilation instructions for several distros 2021-08-03 19:16:48 +02:00
4ea8729e14 Added build & test on CentOS 7
* Requires building `Mapnik`
  * Which requires these `EPEL` repository packages
    * `boost169-devel` + dependencies
    * `gdal-devel` + dependencies
    * `proj-devel` + dependencies
* Caches `Mapnik` build directory
  * Takes about 20-30 minutes without cache
  * Takes about 5-10 minutes with cache
* Runs on `push` to `centos7` branch & `pull_request`
* Includes very basic build documentation
2021-08-03 07:43:47 +02:00
7c4081dc81 Added build & test on Fedora 34
* Takes about 3-5 minutes

**Also:**
* Split up `Lint` and `Build & Test`
  * Into independent workflows
* Changed `.tar` compression to `GZip`
  * `--zstd` not available in `CentOS 7`
  * Also excluded `.git` & `.gitignore`
* Created `Provisioning` local action
  * Combining update & install steps, etc.
* Added libraries to `Ubuntu` build dependencies
  * `libmemcached-dev` & `librados-dev`
  * In order to test for successful compilation
* ~~Reduced `build-archive` retention to 1 day~~
* Updated `ax_pthread` macro
  * While trying to resolve `apxs` failure
  * http://www.gnu.org/software/autoconf-archive/ax_pthread.html
2021-08-02 17:03:19 +02:00
cab62c1612 Reduce redundant CI configuration by using local actions 2021-07-30 16:45:05 +02:00
a7baee9033 Relied on leaflet package for CI 2021-07-29 23:48:54 +00:00
27c470c3eb Improved configuration files 2021-07-29 22:57:26 +00:00
0169d767a1 Install, configure & start apache & renderd, test for mod_tile.so 2021-07-29 10:01:20 +02:00
a14924a999 Logging Improvements
* Using [`GLib Logging Framework`](https://developer.gnome.org/programming-guidelines/stable/logging.html.en) for logging
  * Created new `g_logger` function for logging
    * Outputs to `stdout`/`stderr` only when running in `foreground`
      * `stderr` for `message`, `warning`, `critical` & `error` levels
      * `stdout` for `debug` & `info` levels
        * Use `G_MESSAGES_DEBUG=all` environment to enable `debug` to print
    * Otherwise, output will be to `syslog` or `systemd journal` (when appropriate)
* Standardized usage of `{LOG_PRIORITY}: ` prefix in log messages
  * Only when using `syslog`, otherwise `GLib Logging` will take care of it
* Changed `fprintf(stderr`, `printf` & `perror` calls to `g_logger` calls
  * You might want to check them out closely to make sure I chose the right levels
  * No changes to `logging/output` were made to "`foreground`" programs (I.E. `render_*`)
* Changed `0`,`1` to `no_argument`,`required_argument` in `getopt_long`'s `long_options`
  * Fixed `renderd`'s `foreground` opt (should be `no_argument` [0] rather than `reguired_argument` [1])
* Basic test for `mod_tile` module
* ~~Extended `renderd` log priority onto Mapnik's logger~~
2021-07-28 14:46:50 +00:00
b1091e201b Switched CI from Travis to Github Actions 2021-07-27 14:06:24 +02:00