-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from fnordahl/enable-py37
Enable deployment on Python 3.7 systems
- Loading branch information
Showing
13 changed files
with
118 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
sudo: required | ||
dist: xenial | ||
language: python | ||
install: pip install tox-travis | ||
matrix: | ||
include: | ||
- name: "Python 3.4" | ||
python: 3.4 | ||
env: ENV=flake8,py3 | ||
- name: "Python 3.5" | ||
python: 3.5 | ||
env: ENV=flake8,py3 | ||
- name: "Python 3.6" | ||
python: 3.6 | ||
env: ENV=flake8,py3 | ||
- name: "Python 3.7" | ||
python: 3.7 | ||
env: ENV=flake8,py3 | ||
- name: "Functional test" | ||
env: ENV=func | ||
comment: | | ||
install dependencies in script phase saving time on simpler test environments | ||
sudo back to ourself to activate lxd group membership executable search path | ||
script: | ||
- if [ $ENV = 'func' ]; then | ||
sudo apt update; | ||
sudo apt install -y distro-info; | ||
sudo apt remove -y --purge lxd lxd-client; | ||
sudo snap install lxd; | ||
sudo snap install juju --classic; | ||
sudo snap install charm --classic; | ||
sudo sh -c 'echo PATH=/snap/bin:$PATH >> /etc/environment'; | ||
sudo lxd waitready; | ||
sudo lxd init --auto; | ||
sudo usermod -a -G lxd travis; | ||
sudo su - travis -c 'juju bootstrap --no-gui localhost'; | ||
fi | ||
- echo "export PATH=$PATH;cd $(pwd)" > $HOME/saved_path | ||
- sudo su - travis -c "source $HOME/saved_path; tox -c tox.ini -e $ENV"; | ||
- if [ $ENV = 'func' ]; then | ||
sudo su travis -c 'juju status -m $(juju models --format yaml|grep "^- name:.*zaza"|cut -f2 -d/)'; | ||
fi | ||
after_failure: | ||
- if [ $ENV = 'func' ]; then | ||
sudo su travis -c 'for application in trusty xenial bionic cosmic disco; do juju ssh -m $(juju models --format yaml|grep "^- name:.*zaza"|cut -f2 -d/) minimal-${application}/0 "sudo cat /var/log/juju/unit*.log";done'; | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
charm-tools | ||
git+https://github.com/openstack-charmers/zaza.git#egg=zaza |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
applications: | ||
minimal-trusty: | ||
series: trusty | ||
charm: /tmp/charm-builds/minimal | ||
num_units: 1 | ||
minimal-xenial: | ||
series: xenial | ||
charm: /tmp/charm-builds/minimal | ||
num_units: 1 | ||
minimal-bionic: | ||
series: bionic | ||
charm: /tmp/charm-builds/minimal | ||
num_units: 1 | ||
minimal-disco: | ||
series: disco | ||
charm: /tmp/charm-builds/minimal | ||
num_units: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
comment: this bundle overlay intentionally left blank |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
options: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
includes: ['layer:basic'] | ||
options: | ||
basic: | ||
packages: ['libffi-dev', 'libssl-dev'] | ||
repo: https://github.com/juju-solutions/layer-basic.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: minimal | ||
summary: minimal charm used to functionally test layer-basic | ||
description: reactive charm with some tricky deps to test venv bootstrapping | ||
maintainer: Juju Developers <juju@lists.ubuntu.com> | ||
tags: | ||
- CI | ||
series: | ||
- trusty | ||
- xenial | ||
- bionic | ||
- disco |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import charmhelpers | ||
import charms.reactive as reactive | ||
|
||
|
||
@reactive.when_not('non-existent-flag') | ||
def status_set(): | ||
charmhelpers.core.hookenv.status_set('active', 'Unit is ready') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cryptography |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
charm_name: minimal | ||
gate_bundles: | ||
- minimal | ||
tests: | ||
- zaza.charm_tests.noop.tests.NoopTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
pip>=7.0.0,<8.2.0 | ||
setuptools>24.3,<=39.0.1 | ||
pip>=18.1,<19.2 | ||
setuptools<42 | ||
setuptools-scm<=1.17.0 | ||
charmhelpers>=0.4.0,<1.0.0 | ||
charms.reactive>=0.1.0,<2.0.0 | ||
wheel<0.34 |