Commit Graph

25 Commits

Author SHA1 Message Date
Louis Gesbert
7b25a42970 Better version handling
Always generate the version through git when possible, and encode that within
the binaries so that `catala --version` does'nt give misleading information.

Previously we used dune's builtin functionality, but that resorts to a hack at
install time which is unpleasant and doesn't work with our use of `opam
install`.

The cost is a re-linking of catala_utils and the binaries upon git commit, which
is hardly noticeable.
2024-01-24 11:41:34 +01:00
Louis Gesbert
7636a6e8d5 CI: cleanup the exposed artifacts 2024-01-22 13:58:32 +01:00
Louis Gesbert
c006c3343e Rehaul CI to run examples and generate artifacts again
this requires to fetch catala-examples and french-law from their own repos

Restrict static builds and publication to master
2024-01-18 16:14:27 +01:00
Louis Gesbert
bb2ae885be Use published conf-ninja package
rather than hardcode the depexts
2024-01-16 11:54:28 +01:00
Louis Gesbert
ce812a6685 ninja_utils has been moved away 2024-01-16 11:54:28 +01:00
Louis Gesbert
acdaf7c57d Remove french_law, examples, merge clerk into catala package 2024-01-16 11:54:23 +01:00
Louis Gesbert
f35825a9c1 Update CI build 2023-08-02 12:22:24 +02:00
Louis Gesbert
3ca1a34122 Update and fix Dockerfile 2023-06-19 21:38:40 +02:00
Denis Merigoux
9f52ad9148
Symlink... 2023-06-01 11:49:24 +02:00
Denis Merigoux
6feae765a0
We want python3... 2023-05-31 18:30:14 +02:00
Denis Merigoux
6942eafb3e
With repositories? 2023-05-31 18:25:17 +02:00
Denis Merigoux
45c43bd6b4
With sudo 2023-05-31 18:22:23 +02:00
Denis Merigoux
36d47adadf
Better fix 2023-05-31 18:20:25 +02:00
Denis Merigoux
52b119db58
Try fixing CI by puttin ninja as dependency 2023-05-31 17:51:01 +02:00
Louis Gesbert
996ee1ea13
CI: Update OCaml base image
Available tags can be seen at https://hub.docker.com/r/ocamlpro/ocaml/tags?page=1&ordering=last_updated
2023-04-04 16:01:14 +02:00
Louis Gesbert
cf2e80ba51 Refactor Python dependency handling
* Use the newer "pyproject.toml" for syntax highlighters
* Use venv for everything (previously, the pygment lexers were installed
  globally, but more recent Python releases frown upon that. This will probably
  be more stable in the long run...)
* Use one venv at the root of the project (`_python_venv/`) for both
  pygments and the runtime
* Initialise this venv automatically from the Makefile (it should no longer be
  necessary to run scattered `set_up.sh` scripts with mysterious interactions)

On the downsides, though:
* Only tested with Python 3.11 at the moment
* Need to remember to activate the venv (`. _python_venv/bin/activate`) from the
  root for e.g. HTML literate output to work. A more manageable solution could
  be for Catala to provide the lexers on-the-fly when calling `pygmentize`.
2023-03-02 16:24:53 +01:00
Louis Gesbert
4f36430630 CI: don't rebuild everything twice
Reverts 051a64c4b1

Gasp, I only now noticed this; it should absolutely be avoided, in general (the
Docker image is expected to contain a recent repo), and in particular after
switch creation.

Switch to a newer image instead (or just remove the date constraint in FROM but
stable builds are good).
2023-02-28 18:20:47 +01:00
Louis Gesbert
c393dfb75e CI improvements attempt
- fix dune compilation options: ensure both no dev failure on warnings and CI
  failure on warnings (the defaults do neither of those things !)

- attempt to publish the build artifacts to github-pages, so that they could be
  made more easily available and we could maybe remove the ones that are still
  there from the main repo
2023-02-28 17:55:34 +01:00
zach wick
d57db85ca6
Updates the specified repo for pandoc
Signed-off-by: zach wick <zach@zachwick.com>
2022-12-16 08:24:16 -05:00
Raphaël Monat
051a64c4b1 Dockerfile: opam update 2022-08-30 15:17:47 +02:00
Louis Gesbert
3ee6fdb254 Automate artifact generation 2022-08-03 22:42:56 +02:00
Denis Merigoux
5b6bb88a47
Add -B flag to ensure everything's fine 2022-07-22 16:30:59 +02:00
Louis Gesbert
4a38e81178 Pin origin Docker image to its current version
ensuring more reliable reproducibility
2022-07-20 12:05:19 +02:00
Louis Gesbert
dfccf8e139 Run all CI tests through a Docker container
Also reworks some dependency handling
2022-07-20 12:05:17 +02:00
Jean-Marc Le Roux
f05b8df50f Add a Dockerfile for builds 2021-09-23 17:08:52 +02:00