[travis-ci] adding-pipeline-for-testing
* added travis file * updated README.md * added linting and tox
This commit is contained in:
parent
501d3d5ca2
commit
6ab4c3082e
|
@ -0,0 +1,28 @@
|
||||||
|
language: python
|
||||||
|
|
||||||
|
sudo: required
|
||||||
|
|
||||||
|
python:
|
||||||
|
- "2.7"
|
||||||
|
- "3.6"
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- export LIGGIT2_VERSION=0.24.0
|
||||||
|
- export LIBGIT2=$VIRTUAL_ENV
|
||||||
|
- wget https://github.com/libgit2/libgit2/archive/v${LIGGIT2_VERSION}.tar.gz
|
||||||
|
- tar xzf v${LIGGIT2_VERSION}.tar.gz
|
||||||
|
- cd libgit2-${LIGGIT2_VERSION}/
|
||||||
|
- cmake . -DCMAKE_INSTALL_PREFIX=$LIBGIT2
|
||||||
|
- make
|
||||||
|
- make install
|
||||||
|
- export LDFLAGS="-Wl,-rpath='$LIBGIT2/lib',--enable-new-dtags $LDFLAGS"
|
||||||
|
- cd ..
|
||||||
|
- pip install -r test-requirements.txt
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
# - flake8
|
||||||
|
|
||||||
|
install:
|
||||||
|
- pip install .
|
||||||
|
|
||||||
|
script:
|
||||||
|
- armada -c examples/armada.yaml
|
15
README.md
15
README.md
|
@ -1,7 +1,10 @@
|
||||||
# Armada
|
# Armada
|
||||||
|
|
||||||
|
[![Build Status](https://travis-ci.org/att-comdev/armada.svg?branch=master)](https://travis-ci.org/att-comdev/armada)
|
||||||
|
|
||||||
A python orchestrator for a installing, upgrading, and managing a collection of helm charts, dependencies, and values overrides.
|
A python orchestrator for a installing, upgrading, and managing a collection of helm charts, dependencies, and values overrides.
|
||||||
|
|
||||||
Note that this project is pre-alpha and under active development. It may undergo drastic changes to support the long-term vision but contributions are welcome.
|
Note that this project is pre-alpha and under active development. It may undergo drastic changes to support the long-term vision but contributions are welcome.
|
||||||
|
|
||||||
# Overview
|
# Overview
|
||||||
|
|
||||||
|
@ -26,13 +29,13 @@ The installation is fairly straight forward:
|
||||||
To run armada, simply supply it with your YAML based intention for any number of charts:
|
To run armada, simply supply it with your YAML based intention for any number of charts:
|
||||||
|
|
||||||
```
|
```
|
||||||
~/armada-env/bin/aramda -c examples/aramda.conf
|
~/armada-env/bin/aramda -c examples/armada.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
Your output will look something like this:
|
Your output will look something like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ~/armada-env/bin/armada -c examples/armada.yaml
|
$ ~/armada-env/bin/armada -c examples/armada.yaml
|
||||||
2017-02-10 09:42:36,753 armada INFO Cloning git://github.com/att-comdev/openstack-helm/keystone for release keystone
|
2017-02-10 09:42:36,753 armada INFO Cloning git://github.com/att-comdev/openstack-helm/keystone for release keystone
|
||||||
2017-02-10 09:42:39,238 armada INFO Building dependency chart common for release keystone
|
2017-02-10 09:42:39,238 armada INFO Building dependency chart common for release keystone
|
||||||
2017-02-10 09:42:39,238 armada INFO Cloning git://github.com/att-comdev/openstack-helm/common for release None
|
2017-02-10 09:42:39,238 armada INFO Cloning git://github.com/att-comdev/openstack-helm/common for release None
|
||||||
|
@ -59,15 +62,15 @@ endpoints: &endpoints
|
||||||
And re-run armada, we will notice it will upgrade the keystone release, instead of install it on this pass, as well as report back the values changes as a unified diff. A unified diff for any template changes would also be shown had those occurred.
|
And re-run armada, we will notice it will upgrade the keystone release, instead of install it on this pass, as well as report back the values changes as a unified diff. A unified diff for any template changes would also be shown had those occurred.
|
||||||
|
|
||||||
```
|
```
|
||||||
alan@hpdesktop:~/Workbench/att/attcomdev/armada$ /tmp/armada/bin/armada -c examples/armada.yaml
|
alan@hpdesktop:~/Workbench/att/attcomdev/armada$ /tmp/armada/bin/armada -c examples/armada.yaml
|
||||||
2017-02-10 09:44:43,396 armada INFO Cloning git://github.com/att-comdev/openstack-helm/keystone for release keystone
|
2017-02-10 09:44:43,396 armada INFO Cloning git://github.com/att-comdev/openstack-helm/keystone for release keystone
|
||||||
2017-02-10 09:44:47,640 armada INFO Building dependency chart common for release keystone
|
2017-02-10 09:44:47,640 armada INFO Building dependency chart common for release keystone
|
||||||
2017-02-10 09:44:47,640 armada INFO Cloning git://github.com/att-comdev/openstack-helm/common for release None
|
2017-02-10 09:44:47,640 armada INFO Cloning git://github.com/att-comdev/openstack-helm/common for release None
|
||||||
2017-02-10 09:44:49,701 armada INFO Upgrading release keystone
|
2017-02-10 09:44:49,701 armada INFO Upgrading release keystone
|
||||||
2017-02-10 09:44:49,704 armada INFO Values Unified Diff (keystone)
|
2017-02-10 09:44:49,704 armada INFO Values Unified Diff (keystone)
|
||||||
---
|
---
|
||||||
|
|
||||||
+++
|
+++
|
||||||
|
|
||||||
@@ -1,3 +1,3 @@
|
@@ -1,3 +1,3 @@
|
||||||
|
|
||||||
|
|
38
setup.py
38
setup.py
|
@ -1,15 +1,31 @@
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
from setuptools.command.test import test as TestCommand
|
||||||
|
import sys
|
||||||
|
|
||||||
|
class Tox(TestCommand):
|
||||||
|
"""Runs Tox comands"""
|
||||||
|
def finalize_options(self):
|
||||||
|
"""preps test suite"""
|
||||||
|
TestCommand.finalize_options(self)
|
||||||
|
self.test_args = []
|
||||||
|
self.test_suite = True
|
||||||
|
|
||||||
|
def run_tests(self):
|
||||||
|
"""runs test suite"""
|
||||||
|
import tox
|
||||||
|
errcode = tox.cmdline(self.test_args)
|
||||||
|
sys.exit(errcode)
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'armada',
|
name='armada',
|
||||||
version = '0.1.0',
|
version='0.1.0',
|
||||||
description = 'Armada Helm Orchestrator',
|
description='Armada Helm Orchestrator',
|
||||||
packages = ['armada',
|
packages=['armada',
|
||||||
'hapi',
|
'hapi',
|
||||||
'hapi.chart',
|
'hapi.chart',
|
||||||
'hapi.release',
|
'hapi.release',
|
||||||
'hapi.services',
|
'hapi.services',
|
||||||
'hapi.version'
|
'hapi.version'],
|
||||||
],
|
scripts=['scripts/armada']
|
||||||
scripts = ['scripts/armada']
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
flake8==3.3.0
|
||||||
|
tox==2.6.0
|
Loading…
Reference in New Issue