Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #28 from Razzeee/add-travis-configuration
Browse files Browse the repository at this point in the history
Added travis configuration, which gets created for every add-on you c…
  • Loading branch information
razzeee committed May 8, 2017
2 parents 33695ff + 85a3e75 commit 5bf4392
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
4 changes: 4 additions & 0 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ module.exports = yeoman.extend({
this.templatePath('gitignore'),
this.destinationPath('.gitignore')
);
this.fs.copy(
this.templatePath('travis.yml'),
this.destinationPath('.travis.yml')
);
this.fs.copy(
this.templatePath('changelog.txt'),
this.destinationPath('changelog.txt')
Expand Down
2 changes: 1 addition & 1 deletion generators/app/templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

1. You might want to move this folder into the kodi addon folder for convinience when debugging. It might also be needed to be `enabled` inside of the kodi addon browser.
2. Now start coding! Just open up the `.py` file in this folder and create what you would like Kodi to do! If you're creating a plugin, please check out [this kodi routing framework](https://github.com/tamland/kodi-plugin-routing) and copy a version of that module to your kodi addon folder.
3. Write some tests, maybe? We've created a test folder for that, otherwise just delete it ;)
3. Write some tests, maybe? Don't forget to activate [travis](https://travis-ci.org/) access to your repository. We've created a test folder and a travis config file for that, otherwise just delete those ;)
4. You might want to look at your `addon.xml` it should already be filled, but you will need to understand what your doing and might want to fill in some more info. So read up [here](http://kodi.wiki/view/Addon.xml).
5. Do you want some settings for your addon? Check the `settings.xml` in the resources folder. And read up [here](http://kodi.wiki/view/Settings.xml).
6. Read [this info](http://kodi.wiki/view/Add-on_structure#icon.png) and drop an icon for your addon into the `resource` folder and name it `icon.png`.
Expand Down
20 changes: 20 additions & 0 deletions generators/app/templates/travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: python
matrix:
include:
- python: "2.6"
- python: "2.7"
- python: "2.7.10"
- python: "2.7.11"
allow_failures:
- python: "3.2"
- python: "3.3"
- python: "3.4"
- python: "3.5"
- python: "nightly"

# command to install dependencies
install:
- pip install python-dateutil pytest
# command to run tests
script: py.test -v

7 changes: 7 additions & 0 deletions test/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ describe('generate contextmenu', function () {
assert.file([
'addon.xml',
'.gitignore',
'.travis.yml',
'changelog.txt',
'main.py',
'README.md',
Expand Down Expand Up @@ -92,6 +93,7 @@ describe('generate module', function () {
assert.file([
'addon.xml',
'.gitignore',
'.travis.yml',
'changelog.txt',
'README.md',
'LICENSE'
Expand Down Expand Up @@ -147,6 +149,7 @@ describe('generate plugin', function () {
assert.file([
'addon.xml',
'.gitignore',
'.travis.yml',
'changelog.txt',
'main.py',
'README.md',
Expand Down Expand Up @@ -217,6 +220,7 @@ describe('generate resource', function () {
assert.file([
'addon.xml',
'.gitignore',
'.travis.yml',
'changelog.txt',
'README.md',
'LICENSE'
Expand Down Expand Up @@ -273,6 +277,7 @@ describe('generate script', function () {
assert.file([
'addon.xml',
'.gitignore',
'.travis.yml',
'changelog.txt',
'main.py',
'README.md',
Expand Down Expand Up @@ -344,6 +349,7 @@ describe('generate service', function () {
assert.file([
'addon.xml',
'.gitignore',
'.travis.yml',
'changelog.txt',
'main.py',
'README.md',
Expand Down Expand Up @@ -440,6 +446,7 @@ describe('generate subtitle', function () {
assert.file([
'addon.xml',
'.gitignore',
'.travis.yml',
'changelog.txt',
'main.py',
'README.md',
Expand Down

0 comments on commit 5bf4392

Please sign in to comment.