Commit Graph

20 Commits (master)

Author SHA1 Message Date
Frans de Jonge e5ddd47df5
[CI] Also use Ubuntu 20.04 Docker image for docs (#9209)
Overlooked in <https://github.com/koreader/koreader/pull/9007>.
2 years ago
Frans de Jonge d30a9b52dc
[CI] Use Ubuntu 20.04 Docker image for CI tests (#9007)
They don't seem to crash.

Supersedes #7775.
2 years ago
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.
2 years ago
Frans de Jonge 11d329d20f
[chore, CI] Remove an environment variable intended for shellcheck 0.4.5 (#8615) 2 years ago
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
3 years ago
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.
4 years ago
Frans de Jonge fa765f1b00
[CI] Docker koreader/koappimage:0.1.7 for ragel (#5753)
See https://github.com/koreader/virdevenv/pull/46
4 years ago
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
5 years ago
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
5 years ago
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.
5 years ago
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
5 years ago
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
5 years ago
Frans de Jonge 942f3ed5e4
[chore, CI] Update to Docker koappimage 0.1.3 for Ubuntu 16.04 (#4296) 5 years ago
Frans de Jonge 1ba316aff0
[CI] Also run coverage on plugins (#3447) 7 years ago
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
7 years ago
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.
7 years ago
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.
7 years ago
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
7 years ago
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
7 years ago
Qingping Hou 283bffdce9 Add CircleCI (#3321) 7 years ago