Commit graph

14 commits

Author SHA1 Message Date
Tomas Babej
0a4d31f591 ci: Use docker compose v2
The docker-compose is no longer available in checkout@v2. Use the v2
`docker compose` instead.
2025-06-13 21:36:30 -04:00
Tomas Janousek
c4392c36c0 ci: Revert unnecessary part of the coveralls "fix"
We already set this via the COVERALLS_SERVICE_NAME environment variable
in the GitHub Actions workflow, as it's really specific to GHA.

And as it turns out, the fix wasn't really necessary anyway as the
Coveralls.io infrastructure was just temporarily down.

Fixes: d98d5b18ac ("ci: Fix coveralls submission")
2021-09-22 17:20:21 +02:00
Tomas Babej
d98d5b18ac ci: Fix coveralls submission
See [0] for reference.

[0]: https://github.com/lemurheavy/coveralls-public/issues/1435
2021-09-22 06:49:09 -04:00
Tomas Janousek
4e8b01e6e2 tests: Switch from Travis to GitHub Actions (faster)
Primary motivation for this is speed: GitHub Actions doesn't limit the
number of concurrent jobs to 4, and also provides a docker registry
(GitHub Packages) that we can use to cache the image (building the image
takes cca 5 minutes, fetching it would take less than 10 seconds). This
is done in another commit.

The workflow definition is a bit more complicated because coveralls
support for GitHub Actions is less mature than for Travis CI, so we need
to manually tell coveralls that all parallel builds have finished and
that it can publish the combined result.
2020-08-02 17:24:20 -04:00
Tomas Janousek
58af37436e tests: Really move command from docker-compose.yml to Makefile
This makes it easier to understand the interaction between the outer and
inner make, as one doesn't need to dig through docker-compose.yml and
possibly Dockerfile to find what command will be run.

It does break the ability to run `docker-compose run --rm tests` but
that's a good thing I believe: I only ever use that when I need a shell
in the container for debugging purposes.
2020-07-08 21:36:52 -04:00
Tomas Janousek
15ce16f24c Revert "tests: Use explicit coverage tracking"
This reverts commit b00e886142.

This fixes reporting of coverage by the few tests that run outside of
vim.

The commit that is being reverted doesn't explain why it was committed,
and the git history suggests it was reverted once and then reintroduced
later again. None of those commits explains the why. I can only guess
that the last time this was committed was an attempt to fix coverage
reporting to outside of docker, which it didn't, and additionally it
made coverage gathering less robust (see previous commit). So this is
yet another fix for the inaccurate coverage reporting.

Or maybe it was because `--cov` without `=taskwiki` an argument reports
coverage for tests instead of taskwiki code? Nevermind, I guess, now it
works well.
2020-07-08 21:36:52 -04:00
Tomas Janousek
7663a58793 tests: Fix coverage reporting
Coverage reporting wasn't migrated into the docker container and
therefore did nothing at all.
2020-07-02 09:51:56 -04:00
Tomas Janousek
f0cc8b3ba8 tests: Move command from docker-compose.yml to Makefile
This is a preparation for adding additional commands to the test, like
postprocessing the coverage data, which needs to be processed in the
container (unless we somehow copy the data out of it; but then, we
already install coverage and coveralls inside it, so...).

Additionally, this makes it a bit easier to run the tests locally, which
is helpful when investigating errors. Just a tiny bit, though: it still
requires setting up a fake home with a reasonably minimal .vim and a
python environment with vimrunner.
2020-07-02 09:51:56 -04:00
Tomas Janousek
45d448bda6 tests: Invoke using docker-compose run instead of up
Doesn't leave stopped containers around and feels more like running
locally (terminal size and CTRL-C is passed to pytest).
2020-07-02 09:51:56 -04:00
Tomas Janousek
09b6617791 tests: Fix E233: cannot open display
Apparently xvfb-run can only be run a few times in a long-lived
container. :-/
2020-07-02 09:51:56 -04:00
Tomas Babej
e049f45ae9
Makefile: Propagate the error codes 2019-02-22 20:59:44 -05:00
Tomas Babej
fe4f44bcf9
travis: Use makefile target 2018-07-31 04:54:10 -04:00
Tomas Babej
b00e886142
tests: Use explicit coverage tracking 2018-07-31 03:46:58 -04:00
Tomas Babej
7f7f024c2e
meta: Add makefile 2018-07-30 23:52:43 -04:00