Add basic tox configuration for building the snap

This commit is contained in:
James Page 2016-11-21 11:21:27 +00:00
parent 66b7bbad7b
commit 7872975d0e
4 changed files with 20 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ parts
prime
stage
*.snap
.tox

2
bindep.txt Normal file
View File

@ -0,0 +1,2 @@
snapcraft
lxd

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
# Requirements to build snap

16
tox.ini Normal file
View File

@ -0,0 +1,16 @@
[tox]
envlist = snap
skipsdist = True
[testenv]
install_command = pip install {opts} {packages}
whitelist_externals =
lxc
snapcraft
passenv = HOME TERM
[testenv:snap]
deps = -r{toxinidir}/requirements.txt
commands =
snapcraft clean
snapcraft snap