Added automated testing via tox and zuul.
We're cheating a little bit and re-using the openstack-tox-snap-with-sudo template, even though this isn't strictly speaking a python project. Currently, we simply build the snap and run tests/basic-test.sh. In the long run, we will put together a more comprehensive suite of functional tests. Change-Id: I968116dd7bec412a55813c896d60cfc86c7070db
This commit is contained in:
parent
96c94f0cf5
commit
64f4e12cd1
|
@ -0,0 +1,4 @@
|
|||
[gerrit]
|
||||
host=review.opendev.org
|
||||
port=29418
|
||||
project=x/microstack.git
|
|
@ -0,0 +1,4 @@
|
|||
- project:
|
||||
templates:
|
||||
- snap-jobs
|
||||
|
|
@ -0,0 +1 @@
|
|||
petname
|
|
@ -0,0 +1,19 @@
|
|||
[tox]
|
||||
envlist = snap
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
install_command = pip install {opts} {packages}
|
||||
passenv = HOME TERM
|
||||
whitelist_externals =
|
||||
sudo
|
||||
snapcraft
|
||||
|
||||
[testenv:snap]
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands =
|
||||
sudo snap install core18
|
||||
sudo snap install multipass
|
||||
snapcraft clean
|
||||
snapcraft snap
|
||||
{toxinidir}/tests/basic-test.sh
|
Loading…
Reference in New Issue