42 Commits
Author SHA1 Message Date
Benoit Pierre 72889452a2 ci: bump docker image (#15536) 2026-06-13 19:52:05 +02:00
Benoit Pierre 5ffbbd84be ci/circle: drop runner architecture from cache keys
Cf. koreader/koreader-base#2330.
2026-04-24 21:25:47 +02:00
Benoit Pierre 6b068c3bb7 ci: bump docker image (#14976) 2026-02-14 16:17:26 +01:00
Benoit Pierre 5e05d8d3d0 ci/circle: speed up lint phase (#14472)
Honor `PARALLEL_JOBS` so the number of luacheck jobs is capped to 3 (we don't want to end-up using 36 jobs).
2025-10-17 00:38:13 +02:00
Benoit Pierre 9a31068e95 ci: bump docker image (#14470) 2025-10-17 00:35:59 +02:00
Benoit Pierre 4c161ccceb ci: bump docker image (#14178) 2025-08-19 13:28:46 +02:00
Benoit Pierre bc83fc6c05 ci: update build configurations (#14069)
Explicitly set `KODEBUG` in preparation for bumping base
with https://github.com/koreader/koreader-base/pull/2118.
2025-07-19 11:44:45 +02:00
Benoit Pierre bb4dafa7e3 ci: bump docker images (#13767) 2025-05-11 23:18:44 +02:00
Benoit Pierre 5d68ece781 ci/circle: fix ccache cache (#12802)
New ccache versions respect the XDG spec: `~/.ccache` → `~/.cache/ccache`.
2024-11-26 16:39:47 +01:00
Benoit Pierre 74c9347bba ci/circle: speed up tests / coverage
Instead of running the testsuite twice when coverage is need,
only run it once (without filtering out `nocov` tests): with
`cluacov` installed, it's only 50% slower than a normal run.
2024-11-25 22:55:57 +01:00
Benoit Pierre ea5d424868 tests: use new runner 2024-11-25 22:55:57 +01:00
Benoit Pierre 761c17038c ci/circle: manually cap build jobs (#12751)
Can't look at `/sys/fs/cgroup/cpu/cpu.shares` anymore…
2024-11-19 15:52:59 +01:00
Benoit Pierre 1add3b5772 make: directly include base main makefile 2024-07-31 08:45:48 +02:00
Benoit Pierre 7b9c65ee1e ci/circle: bump docker image (#12166) 2024-07-15 19:53:09 +02:00
Benoit Pierre 404c7c0dfe ci: update build directory trimming before caching 2024-05-29 22:02:06 +02:00
Benoit Pierre b2d495fcdd ci: force color output 2024-05-14 10:33:21 +02:00
Benoit Pierre b28c58b902 ci/circle: tweak resource classes 2024-05-14 10:33:21 +02:00
Benoit Pierre 76bdb7e65c ci/circle: improve caching
Don't cache the whole base directory; instead independently cache:
- the build output directory
- the ccache directory

This allow completely avoiding the need for building base if a
cache (keyed on the relevant parts of the git tree for base) is
successfully restored, as well as reducing the amount of cached
data.

Additionally, ensure caches are isolated by branch name (but allow
falling back to a "master" cache for restore): we don't want PRs
using each others' caches.
2024-05-14 10:33:21 +02:00
Benoit Pierre 6d5ad05e9f ci: bump docker images 2024-04-30 22:22:44 +02:00
Benoit Pierre 715f5aa747 ci: cleanup CircleCI fetch phases 2024-04-16 18:58:45 +02:00
Benoit Pierre 4a343d3669 ci: bump CircleCI docker images 2024-04-16 18:58:45 +02:00
Benoit Pierre 21c6e37f5e ci: remove CircleCI unnecessary steps
The docker images should already contain all the necessary tools.
2024-04-16 18:58:45 +02:00
Frans de Jonge e5ddd47df5 [CI] Also use Ubuntu 20.04 Docker image for docs (#9209)
Overlooked in <https://github.com/koreader/koreader/pull/9007>.
2022-06-13 18:39:23 +02:00
Frans de Jonge d30a9b52dc [CI] Use Ubuntu 20.04 Docker image for CI tests (#9007)
They don't seem to crash.

Supersedes #7775.
2022-05-31 22:20:41 +02:00
Frans de Jonge ec280f874f [CI] Fix CircleCI context issue by separating out docs & translations (#8614)
See <https://github.com/koreader/koreader/pull/8607> for discussion.
2022-01-04 22:17:40 +01:00
Frans de Jonge 11d329d20f [chore, CI] Remove an environment variable intended for shellcheck 0.4.5 (#8615) 2022-01-04 21:20:03 +01:00
Frans de Jonge d8d0066ac0 [CI] Fix certificate issue with quick koreader/koappimage:0.1.8 (#8305)
See https://github.com/koreader/virdevenv/pull/69 for details
2021-10-06 09:09:28 +02:00
Frans de Jonge 624762a6bf [chore] (#6764)
Add authentication to Docker image.

This will be required by November 1.

See <https://docs.docker.com/docker-hub/download-rate-limit/> and <https://discuss.circleci.com/t/authenticate-with-docker-to-avoid-impact-of-nov-1st-rate-limits/37567?mkt_tok=eyJpIjoiT1dVNE9EWmhNRFJtWTJObSIsInQiOiJOd1lnZHJidWpyU2ZqMG1JM21cL1Yxc1BsK1M1cWYwWnljeE43WlQ2K2tcL0ZKNnpXUElISjl6djlIM2FucTl4ekY3bjFBUVRxbXJ5XC93YTlZYlF2Z0pWeU1OM2FQR2RFNWFWOFBURk80RElsK3JabHZqT09qc3FYOE1aS0VUdFo4MiJ9> for more information.
2020-10-09 19:15:16 +02:00
Frans de Jonge fa765f1b00 [CI] Docker koreader/koappimage:0.1.7 for ragel (#5753)
See https://github.com/koreader/virdevenv/pull/46
2020-01-06 20:45:58 +01:00
Frans de Jonge da988c15de [CI] Switch to custom xgettext build to extract multiline strings (#5242)
Because let's face it, it just looks much better this way.

Docker image update in https://github.com/koreader/virdevenv/pull/43

Discussion in https://github.com/koreader/koreader/pull/5238#issuecomment-523675211 and https://github.com/koreader/koreader/pull/4524
2019-08-22 17:11:47 +02:00
Frans de Jonge e2ceace302 [fix, CI] Push to Transifex from master, fix multiline strings for xgettext (#5238)
Related to https://github.com/koreader/koreader/pull/5237
2019-08-22 00:12:53 +02:00
Frans de Jonge 65d72d0244 [CI] CircleCI: save test results (#4974)
It should be a path to a directory, not a file.

https://circleci.com/docs/2.0/configuration-reference/#store_test_results

> Path (absolute, or relative to your working_directory) to directory containing subdirectories of JUnit XML or Cucumber JSON test metadata files

Perhaps the file needs to be named results.xml. We'll see.
2019-04-26 13:57:09 +02:00
Frans de Jonge c0ba6ae48e [CI] Bump busted to v2.0.rc13-0 (#4966)
Includes https://github.com/koreader/koreader-base/pull/906

Cf. https://github.com/koreader/koreader-base/issues/905
2019-04-23 09:29:39 +02:00
Frans de Jonge 9eca893ceb [build] Bump base to make ninja the default CMake generator when available (#4808)
The difference for builds from scratch is negligible, but for rebuilds (i.e., for us hackers & the CI here in front) it should bring a speed improvement.

Automatic fallback to Make when Ninja is not available, or override with `USE_MAKE=1`.

You can (theoretically) choose your own generator with a sensible combination of `CMAKE_FLAGS` and `CMAKE_MAKE_PROGRAM`.

I also added `MAKE_FLAGS` and `NINJA_FLAGS`. That way you can easily pass `MAKE_FLAGS=-n` or `NINJA_FLAGS=-n` for a dry run, for example.

To switch you might have to run something like `make dist-clean USE_MAKE=1`.

Cf. https://github.com/koreader/koreader-base/pull/861, https://github.com/koreader/koreader-base/pull/862 and https://github.com/koreader/virdevenv/pull/34/files
2019-03-16 10:48:53 +01:00
Frans de Jonge 942f3ed5e4 [chore, CI] Update to Docker koappimage 0.1.3 for Ubuntu 16.04 (#4296) 2019-03-13 14:46:20 +01:00
Frans de Jonge 1ba316aff0 [CI] Also run coverage on plugins (#3447) 2017-10-29 21:09:13 +01:00
Frans de Jonge 53c0756def CircleCI: finishing touches (#3340)
* junit test results; unfortunately this seems to conflict with the verbose out

* fix deps cache: two files can change independently

* verbose print obsoleted by gtest in upsream busted
2017-10-11 08:38:30 +02:00
Frans de Jonge aaab777ddb [CI] Switch to Codecov (#3336)
The debug output from Coveralls was rubbish. `"Build processing error"`
Besides some basics like checking if we were actually sending
valid JSON that gives us absolutely nothing to work with.
2017-10-10 17:57:50 +02:00
Frans de Jonge 868860a62e CircleCI parallelization
* Enable parallelism in .circleci/config.yml
* Add BUSTED_SPEC_FILE to Makefile testfront
* Use it in .ci/test.sh with xargs for test parallelization

NB This is the dumb method of improving test time.
Ideally we want a workflow fan-in/fan-out approach.
2017-10-10 14:08:49 +02:00
Frans de Jonge 91f07b9d99 CircleCI cache fix (#3329)
* Update luarocks/shellcheck/shfmt check based on `deps-{{ arch }}-{{ checksum ".ci/install.sh" }}`
* We generate a git-rev-base to check whether we can trust the cache
  with `build-{{ arch }}-{{ checksum "git-rev-base" }}`

Binary dependencies require `{{ arch }}` because there are different CPUs used on the servers.
More information here: https://discuss.circleci.com/t/use-the-arch-cache-template-key-if-you-rely-on-cached-compiled-binary-dependencies/16129
2017-10-10 08:47:46 +02:00
Frans de Jonge ea033431aa CircleCI fixes
* shellcheck 0.4.5 fix `LC_ALL: en_US.UTF8` (can be removed for shellcheck 0.4.6)

* hush updated luacheck on `reader.lua`; we're not assigning any variables but `= nil` is redundant
2017-10-08 18:38:00 +02:00
Qingping Hou 283bffdce9 Add CircleCI (#3321) 2017-10-08 18:38:00 +02:00