taskwiki/docker-compose.yml
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

20 lines
457 B
YAML

version: '3'
services:
tests:
build: .
volumes:
- ".:/root/.vim/bundle/taskwiki:ro"
network_mode: "host"
security_opt:
- label=type:container_runtime_t
tty: true
environment:
COVERALLS_PARALLEL:
GITHUB_ACTIONS:
GITHUB_HEAD_REF:
GITHUB_REF:
GITHUB_RUN_ID:
GITHUB_RUN_NUMBER:
GITHUB_SHA:
GITHUB_TOKEN:
PYTEST_FLAGS: "-o cache_dir=/tmp/pytest-cache ${PYTEST_FLAGS:-}"