stages: - lint - test lint: stage: lint image: python:3 before_script: - pip install pre-commit script: - pre-commit run -a test: stage: test image: debian:stretch needs: [] before_script: - apt-get update -y - apt-get install -y -qq python3-dev python3-pip # Deps for running tests - apt-get install -y -qq cmdtest # Download git-lfs repo - apt-get install -y -qq curl - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash # Deps to run lorry tests - apt-get install -y -qq git bzr cvs mercurial subversion hg-fast-export git-svn git-cvs git-lfs bzr-fastimport - pip3 install pyyaml - pip3 install https://gitlab.com/trovekube/cliapp/-/archive/cliapp-1.20180812.1/cliapp-cliapp-1.20180812.1.tar.gz # Configure git and bzr to run tests - git config --global user.email "jdoe@example.com" - git config --global user.name "Lorry Baserocker" - bzr whoami "Lorry Baserocker " script: - ./check