https://github.com/pupil-labs/pupil
Revision 4b9f6f545db2070a80b0852a470e5f44aac60c60 authored by Pablo Prietz on 04 November 2020, 09:18:08 UTC, committed by GitHub on 04 November 2020, 09:18:08 UTC
1 parent 6f34803
Raw File
Tip revision: 4b9f6f545db2070a80b0852a470e5f44aac60c60 authored by Pablo Prietz on 04 November 2020, 09:18:08 UTC
Update .travis.yml
Tip revision: 4b9f6f5
.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
          )
back to top