[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
|
|
@ -1,4 +1,7 @@
|
|||
# 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.
|
||||
|
||||
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.
|
||||
|
@ -26,7 +29,7 @@ The installation is fairly straight forward:
|
|||
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:
|
||||
|
|
20
setup.py
20
setup.py
|
@ -1,4 +1,21 @@
|
|||
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(
|
||||
name='armada',
|
||||
|
@ -9,7 +26,6 @@ setup(
|
|||
'hapi.chart',
|
||||
'hapi.release',
|
||||
'hapi.services',
|
||||
'hapi.version'
|
||||
],
|
||||
'hapi.version'],
|
||||
scripts=['scripts/armada']
|
||||
)
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
flake8==3.3.0
|
||||
tox==2.6.0
|
Loading…
Reference in New Issue