From d760662f4abf3df2fda7ee030a9bf354fc4cf97f Mon Sep 17 00:00:00 2001 From: MinchinWeb Date: Fri, 2 Nov 2018 17:48:09 -0600 Subject: [PATCH] Travis: Add linux back, and more versions on Windows --- .travis.yml | 144 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 139 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index b12ace20..5084c4f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,89 @@ language: sh matrix: include: - - os: windows + - os: linux + python: 3.5 + env: TOX_ENV=docs + before_install: + - sudo apt-get install python3.5 + - python -m pip install virtualenv --user + - virtualenv venv + - source venv/bin/activate + - python -m pip install --upgrade pip wheel + - pip --version + - sudo apt-get update -qq + - sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8 + + - os: linux + python: 3.5 + env: TOX_ENV=flake8 + before_install: + - sudo apt-get install python3.5 + - python -m pip install virtualenv --user + - virtualenv venv + - source venv/bin/activate + - python -m pip install --upgrade pip wheel + - pip --version + - sudo apt-get update -qq + - sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8 + + - os: linux + python: 2.7 env: TOX_ENV=py27 + before_install: + - sudo apt-get install python2.7 + - python -m pip install virtualenv --user + - virtualenv venv + - source venv/bin/activate + - python -m pip install --upgrade pip wheel + - pip --version + - sudo apt-get update -qq + - sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8 + + - os: linux + python: 3.4 + env: TOX_ENV=py34 + before_install: + - sudo apt-get install python3.4 + - python -m pip install virtualenv --user + - virtualenv venv + - source venv/bin/activate + - python -m pip install --upgrade pip wheel + - pip --version + - sudo apt-get update -qq + - sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8 + + - os: linux + python: 3.5 + env: TOX_ENV=py35 + before_install: + - sudo apt-get install python3.5 + - python -m pip install virtualenv --user + - virtualenv venv + - source venv/bin/activate + - python -m pip install --upgrade pip wheel + - pip --version + - sudo apt-get update -qq + - sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8 + + - os: linux + python: 3.6 + env: TOX_ENV=py36 + before_install: + - sudo add-apt-repository ppa:deadsnakes/ppa -y + - sudo apt-get update + - sudo apt-get install python3.6 + - python -m pip install virtualenv --user + - virtualenv venv + - source venv/bin/activate + - python -m pip install --upgrade pip wheel + - pip --version + - sudo apt-get update -qq + - sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8 + + + - os: windows + env: TOX_ENV=py27-win before_install: - choco install pandoc - choco install python --version 2.7.11 @@ -15,10 +96,54 @@ matrix: - python -m pip install . script: - nosetests -sv --with-coverage --cover-package=pelican pelican - - coveralls - os: windows - env: TOX_ENV=py37 + env: TOX_ENV=py34-win + before_install: + - choco install pandoc + - choco install python --version 3.4.4 + - export PATH="/c/Python34:/c/Python34/Scripts:$PATH" + - python --version + - python -m pip install --upgrade pip wheel + - python -m pip install -r requirements/test.pip + - python -m pip install nose nose-cov coveralls pygments==2.1.3 + install: + - python -m pip install . + script: + - nosetests -sv --with-coverage --cover-package=pelican pelican + + - os: windows + env: TOX_ENV=py35-win + before_install: + - choco install pandoc + - choco install python --version 3.5.4 + - export PATH="/c/Python35:/c/Python35/Scripts:$PATH" + - python --version + - python -m pip install --upgrade pip wheel + - python -m pip install -r requirements/test.pip + - python -m pip install nose nose-cov coveralls pygments==2.1.3 + install: + - python -m pip install . + script: + - nosetests -sv --with-coverage --cover-package=pelican pelican + + - os: windows + env: TOX_ENV=py36-win + before_install: + - choco install pandoc + - choco install python --version 3.6.7 + - export PATH="/c/Python36:/c/Python36/Scripts:$PATH" + - python --version + - python -m pip install --upgrade pip wheel + - python -m pip install -r requirements/test.pip + - python -m pip install nose nose-cov coveralls pygments==2.1.3 + install: + - python -m pip install . + script: + - nosetests -sv --with-coverage --cover-package=pelican pelican + + - os: windows + env: TOX_ENV=py37-win before_install: - choco install pandoc - choco install python --version 3.7.1 @@ -31,12 +156,21 @@ matrix: - python -m pip install . script: - nosetests -sv --with-coverage --cover-package=pelican pelican - - coveralls allow_failures: - os: windows -script: tox -e $TOX_ENV + +apt_packages: + - pandoc + + # used by matrix options where these keys aren't re-defined +install: + - pip install tox==2.5.0 +script: + - tox -e $TOX_ENV +after_script: + - coveralls notifications: irc: