Misc fixes for gate testing

Ensure snapd is installed, and that the core snap is installed as
required for build of classic confinement snaps.

Change-Id: I65fd83a9011cdd5a8117660f8904f8a083d4f243
This commit is contained in:
James Page 2017-02-13 11:30:20 +00:00
parent a2a2e5dcb1
commit 8c13ea66dc
3 changed files with 9 additions and 0 deletions

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=openstack/snap-openstackclients.git

View File

@ -1 +1,2 @@
snapcraft [platform:dpkg] snapcraft [platform:dpkg]
snapd [platform:dpkg]

View File

@ -6,9 +6,13 @@ skipsdist = True
basepython = python3.5 basepython = python3.5
install_command = pip install {opts} {packages} install_command = pip install {opts} {packages}
passenv = HOME TERM passenv = HOME TERM
whitelist_externals =
sudo
snapcraft
[testenv:snap] [testenv:snap]
deps = -r{toxinidir}/requirements.txt deps = -r{toxinidir}/requirements.txt
commands = commands =
sudo snap install core
snapcraft clean snapcraft clean
snapcraft snap snapcraft snap