sudo: required language: python env: - TASK_VERSION=v2.4.0 - TASK_VERSION=v2.4.1 - TASK_VERSION=v2.4.2 - TASK_VERSION=v2.4.3 - TASK_VERSION=v2.4.4 - TASK_VERSION=v2.5.0 - TASK_VERSION=v2.5.1 python: - "3.5" - "3.6" before_install: # Setup virtual framebuffer - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start install: # Install coverage dependencies - pip install coverage coveralls # Build the docker container - pushd $TRAVIS_BUILD_DIR - mkdir ~/taskwiki-coverage - docker build --build-arg TASK_VERSION=$TASK_VERSION -t test_taskwiki . script: - sudo docker run --security-opt label=type:container_runtime_t -v "$HOME/.Xauthority:/root/.Xauthority:rw" -v "$HOME/taskwiki-coverage:/root/taskwiki-coverage:rw" -v "$PWD:/root/.vim/bundle/taskwiki" --net host -e DISPLAY -it test_taskwiki after_success: - ls ~/taskwiki-coverage - mv ~/taskwiki-coverage/.coverage.* . || echo ok - coverage combine - coverage report - coveralls