mirror of
https://github.com/arsenetar/send2trash.git
synced 2024-12-21 10:59:03 +00:00
Update Tox and Travis configurations
This commit is contained in:
parent
33ed07811b
commit
054d56c564
10
.travis.yml
10
.travis.yml
@ -3,16 +3,14 @@ matrix:
|
|||||||
include:
|
include:
|
||||||
- os: windows
|
- os: windows
|
||||||
language: sh
|
language: sh
|
||||||
python: 3
|
python: "3.8"
|
||||||
|
env: "PATH="/c/Python:/c/Python/Scripts:$PATH""
|
||||||
# Perform the manual steps on windows to install python3
|
# Perform the manual steps on windows to install python3
|
||||||
before_install:
|
before_install:
|
||||||
- choco install python3 --params "/InstallDir:C:\Python"
|
- choco install python --version=3.8.6
|
||||||
- export PATH="/c/Python:/c/Python/Scripts:$PATH"
|
|
||||||
- python -m pip install --upgrade pip
|
- python -m pip install --upgrade pip
|
||||||
- python -m pip install pywin32
|
|
||||||
before_script:
|
before_script:
|
||||||
- export TOXENV=py3-win
|
- export TOXENV=py38
|
||||||
|
|
||||||
- python: "2.7"
|
- python: "2.7"
|
||||||
- python: "3.4"
|
- python: "3.4"
|
||||||
- python: "3.5"
|
- python: "3.5"
|
||||||
|
17
tox.ini
17
tox.ini
@ -1,21 +1,20 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py{27,34,35,36,37,38,39,310,3-win}
|
envlist = py{27,34,35,36,37,38,39,310}
|
||||||
skip_missing_interpreters = True
|
skip_missing_interpreters = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
platform = linux
|
deps =
|
||||||
|
flake8
|
||||||
|
pytest
|
||||||
|
pywin32; sys_platform == 'win32'
|
||||||
commands =
|
commands =
|
||||||
python setup.py test --test-suite tests.TestSuite
|
flake8
|
||||||
|
pytest
|
||||||
[testenv:py3-win]
|
|
||||||
platform = win
|
|
||||||
commands =
|
|
||||||
python -m pip install pywin32
|
|
||||||
python setup.py test --test-suite tests.TestSuite
|
|
||||||
|
|
||||||
[testenv:py27]
|
[testenv:py27]
|
||||||
deps =
|
deps =
|
||||||
configparser
|
configparser
|
||||||
|
{[testenv]deps}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
exclude = .tox,env,build
|
exclude = .tox,env,build
|
||||||
|
Loading…
Reference in New Issue
Block a user