X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.travis.yml;fp=.travis.yml;h=47bf07dd9303abded02be16f1219eab8b5bd20f5;hb=c3a01114c7f017b595372d0c5d910fbed6b1ce42;hp=0000000000000000000000000000000000000000;hpb=92083ed2066ead1097fa68cd52cea66f27141d4d;p=m_librarian.git diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..47bf07d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,39 @@ +# Only test master and pull requests; skip tags. +# Other branches can allow themselves. +branches: + only: + - master + +# Prefer docker containers +sudo: required + +language: python + +python: + - "2.7" + +cache: pip + +matrix: + include: + - python: "2.7" + env: TOXENV=py27 + - python: "3.4" + env: TOXENV=py34 + - python: "3.5" + env: TOXENV=py35 + - python: "3.6" + env: TOXENV=py36 + - python: "2.7" + env: TOXENV=py27-flake8 + - python: "3.4" + env: TOXENV=py34-flake8 + +install: + - travis_retry pip install --upgrade pip setuptools tox ppu + +script: + - tox + +before_cache: + - remove-old-files.py -o 180 ~/.cache/pip