Add travis-ci config
authorTim Van Steenburgh <tvansteenburgh@gmail.com>
Mon, 21 Nov 2016 17:50:52 +0000 (12:50 -0500)
committerTim Van Steenburgh <tvansteenburgh@gmail.com>
Mon, 21 Nov 2016 17:50:52 +0000 (12:50 -0500)
.travis.yml [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..4368ca0
--- /dev/null
@@ -0,0 +1,18 @@
+dist: trusty
+sudo: required
+language: python
+python:
+  - "3.5"
+before_install:
+  - sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable -y
+  - sudo add-apt-repository ppa:juju/stable -y
+  - sudo apt-get update -q
+  - sudo apt-get install lxd juju -y
+  - newgrp lxd
+  - sudo lxd init --auto
+install: pip install tox-travis
+before_script:
+  - juju bootstrap localhost test
+script: tox
+after_script:
+  - juju destroy-controller --destroy-all-models -y test