Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

Commit

Permalink
Merge pull request #6 from nuk380y/documentation
Browse files Browse the repository at this point in the history
Add Travis CI integration and licensing information.
  • Loading branch information
ragingpastry authored Jun 4, 2019
2 parents 70a2e79 + f6ff984 commit acccc40
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 3 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 AFCYBER DREAM Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
38 changes: 35 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# PiedPiper Mindflayer
[![Build Status](https://travis-ci.com/AFCYBER-DREAM/piedpiper-mindflayer.svg?branch=master)](https://travis-ci.com/AFCYBER-DREAM/piedpiper-mindflayer)

### Table of Contents

Expand All @@ -7,6 +8,7 @@
* [Usage](#usage)
* [Inputs and Outputs](#inputs-and-outputs)
* [Running the Tests](#running-the-tests)
* [Travis-CI Integration](#travis-ci-integration)
* [Test Prerequisites](#test-prerequisites)
* [Contributing](#contributing)
* [Versioning](#versioning)
Expand Down Expand Up @@ -82,11 +84,39 @@ root directory of a PiedPiper module.
$ cd piedpiper-example_module-faas
# Verify that the project directory has a `stack.yml` file.
$ ls | grep stack.yml
stack.yaml
stack.yml
# Run the pytest module against the project.
$ pytest ../piedpiper-mindflayer/tests/test_stack_yaml.py
```

### Travis-CI Integration

To add Mindflayer to a Travis-CI pipeline, add strings to the `before_script`
section of a repository's `.travis.yml` file.

```yaml
before_script:
- wget pip install pytest==4.5.0 PyYAML==5.1
- wget https://github.com/AFCYBER-DREAM/piedpiper-mindflayer/archive/master.zip -O /tmp/piedpiper-mindflayer.zip
- unzip /tmp/piedpiper-mindflayer.zip
```
In addition to the `before_script` section, the `script` section will also need
directives to run the tests against the repository.

```yaml
script:
- pytest ./piedpiper-mindflayer-master/tests/test_stack_yaml.py
```

> **NOTE:**
>
> It is user preference to determine where Mindflayer will be downloaded and run
> from. The order in which a pipeline runs is also subjective, but the
> development team recommends running the Mindflayer tests just after all syntax
> scripts, but before any unit- or functional-testing. Change the `.travis.yml`
> file accordingly.

### Test Prerequisites

As outlined in the [Prerequisites](#prerequisites) section, Mindflayer requires
Expand Down Expand Up @@ -126,7 +156,9 @@ to us.

## Versioning

Undetermined
We use [SemVer](http://semver.org/) for versioning. For the versions available,
see the
[tags on this repository](https://github.com/piedpiper-flake8-faas/tags).

## Authors

Expand All @@ -136,4 +168,4 @@ See also the list of

## License

Undeclared
MIT

0 comments on commit acccc40

Please sign in to comment.