From c982320b6c13852b3ce13eccc10fba237252abd5 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Mon, 8 Jun 2020 21:28:44 +0100 Subject: [PATCH] update travis conf + codecov --- .travis.yml | 46 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index bbfc492..0e3b33b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,14 +11,52 @@ jobs: - python: 3.8 - python: "pypy" - python: "pypy3" +# OSX + - name: OSX Python 2.7 + os: osx + language: shell + before_install: + - cp -fv `which python2` `which python` || true + - cp -fv `which pip2` `which pip` || true + - pip install --upgrade pip + - name: OSX Python 3.7 + os: osx + language: shell + before_install: + - cp -fv `which python3` `which python` || true + - cp -fv `which pip3` `which pip` || true + - pip install --upgrade pip +# Windows + - name: Win Python 3.6 + language: shell + os: windows + before_install: + - choco install python --version 3.6.8 + - python -m pip install --upgrade pip + env: PATH=/c/Python36:/c/Python36/Scripts:$PATH + - name: Win Python 3.7 + language: shell + os: windows + before_install: + - choco install python --version 3.7.4 + - python -m pip install --upgrade pip + env: PATH=/c/Python37:/c/Python37/Scripts:$PATH + - name: Win Python 3.8 + language: shell + os: windows + before_install: + - choco install python --version 3.8.2 + - python -m pip install --upgrade pip + env: PATH=/c/Python38:/c/Python38/Scripts:$PATH + install: - - pip install -r requirements.txt + - pip install mock pytest==3.2.1 pytest-cov==2.5.1 + - pip install codecov - pip install coveralls - pip install scrutinizer-ocular -before_script: - - rm -f .coverage vdf/*.pyc tests/*.pyc script: - - PYTHONHASHSEED=0 python -m pytest --cov=vdf tests + - PYTHONHASHSEED=0 pytest --cov=vdf tests after_success: + - codecov - coveralls - ocular --data-file ".coverage"