Add basic tox configuration for building the snap
This commit is contained in:
parent
66b7bbad7b
commit
7872975d0e
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ parts
|
||||
prime
|
||||
stage
|
||||
*.snap
|
||||
.tox
|
||||
|
2
bindep.txt
Normal file
2
bindep.txt
Normal file
@ -0,0 +1,2 @@
|
||||
snapcraft
|
||||
lxd
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
# Requirements to build snap
|
16
tox.ini
Normal file
16
tox.ini
Normal 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
|
Loading…
x
Reference in New Issue
Block a user