项目作者: mineo

项目描述 :
Convert tox.ini to .travis.yml or GitHub actions YAML files
高级语言: Python
项目地址: git://github.com/mineo/tox2travis.git
创建时间: 2017-12-13T23:34:40Z
项目社区:https://github.com/mineo/tox2travis

开源协议:MIT License

下载


tox2travis

Run tox
Build Status

After installing, simply call tox2travis in a directory that
contains a tox.ini file. A .travis.yml file will be generated.

tox2travis will be able to map environment names using tox’s
default
environments

to the correct python version on Travis automatically.

Non-standard environment names

If an environment name does not match one of the default environments
provided by tox, tox2travis will simply ignore it. To specify a python
version for such environments, use the --fallback-python command line
argument:

  1. tox2travis --fallback-python pythonx.y

The value passed to the argument must be a valid
basepython.

Custom basepython

If environments specified in tox.ini use a
basepython
that can not be automatically mapped to one of the supported python
versions on Travis, use the --custom-mapping command line argument:

  1. tox2travis --custom-mapping <basepython> <travis-python>

GitHub Actions

Despite the name, tox2travis can also generate a configuration file
for GitHub Actions. Simply call
tox2travis --output=actions in a directory that contains a
tox.ini file. A new file .github/workflows/tox.yml will be
generated.