https://github.com/pupil-labs/pupil
Tip revision: ebbfb20cc7c073c44e178fe06a60d3a201b6ed33 authored by Pablo Prietz on 14 April 2021, 08:53:51 UTC
Player: Cache decoded BGR buffer when paused.
Player: Cache decoded BGR buffer when paused.
Tip revision: ebbfb20
.travis.yml
# Travis integration for running unittests on pupil-labs/pupil
# NOTE: Tests are currently only ran on Ubuntu 18.04
# There's a docker image pupillabs/pupil-docker-ubuntu:latest which contains all
# required dependencies for the test-suite to run.
jobs:
include:
- name: pytest
os: minimal
services: docker
before_install:
- docker pull pupillabs/pupil-docker-ubuntu:latest
- chmod +x ./.travis/*.sh
script:
- >
docker run --rm
-v `pwd`:/repo
-w /repo
pupillabs/pupil-docker-ubuntu:latest
/bin/bash /repo/.travis/run_tests.sh
- name: black formatting check
language: python
before_install: pip install -U pip
# Travis automatically runs `pip install -r requirements.txt` if such a file is present.
# Source: https://docs.travis-ci.com/user/languages/python/#dependency-management
# Since we only need black to be installed, we overwrite with:
install: pip install black
script:
- >
black . --check --exclude pupil_src/tests || (
echo -e "\033[0;31m PLEASE RUN THE BLACK FORMATTER ON YOUR CODE: \033[0m" &&
echo "See https://github.com/psf/black for details" &&
false
)