1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 21:45:26 +01:00

Add tox and travis-ci matrix

This commit is contained in:
Rémy HUBSCHER
2015-09-25 11:48:32 +02:00
parent b9dd841b5c
commit 2c1906c594
5 changed files with 35 additions and 5 deletions

6
.gitignore vendored Normal file
View File

@@ -0,0 +1,6 @@
*.pyc
.cache/
__pycache__/
*.egg-info/
*.egg
.tox/

9
.travis.yml Normal file
View File

@@ -0,0 +1,9 @@
language: python
python: 2.7
env:
- TOX_ENV=py26
- TOX_ENV=py27
- TOX_ENV=py34
- TOX_ENV=flake8
install: pip install tox
script: tox -e $TOX_ENV

View File

@@ -10,15 +10,16 @@ requirements:
dev-requirements:
sudo pip install -U -r dev-requirements.txt
tests:
tests: install dev-requirements
py.test tests
test: tests
pypi:
python setup.py sdist check upload --sign
clean:
rm -rf *pyc
rm -rf build
rm -rf __pycache__
rm -rf dist
rm -rf *.pyc sops/*.pyc
rm -rf __pycache__ sops/__pycache__
rm -rf build/ dist/
rm -fr .tox/

0
sops/__init__.py Executable file → Normal file
View File

14
tox.ini Normal file
View File

@@ -0,0 +1,14 @@
[tox]
envlist = py26,py27,py34,flake8
[testenv]
commands =
python --version
py.test tests/ {posargs}
deps = -rdev-requirements.txt
install_command = pip install --pre {opts} {packages}
[testenv:flake8]
commands = flake8 sops
deps =
flake8