Skip to content

Commit 3e263c2

Browse files
author
Devyn Stott
committed
chore(travis): get travisci working and running
1 parent a1ccf3b commit 3e263c2

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
- "3.6"
5+
# command to install dependencies
6+
install:
7+
- pip install .
8+
- pip install -r requirements.txt
9+
# command to run tests
10+
script: pytest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# python-starter
22
A starting spot for python projects. Embracing open source elements.
33

4-
![Documentation status](https://readthedocs.org/projects/python-starter/badge/?version=latest)
4+
![Documentation status](https://readthedocs.org/projects/python-starter/badge/?version=latest) [![Build Status](https://travis-ci.org/SyntaxRules/python-starter.svg?branch=master)](https://travis-ci.org/SyntaxRules/python-starter)
55

66
# Project Structure
77

starter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
#
33
# Copyright (c) 2017 <company or person>
44
#
5-
from starter import StartExample
5+
from .starter import StartExample

tests/test_command_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ def test_run(self):
1717
pipe = subprocess.Popen(self.command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
1818
stdout, stderr = pipe.communicate()
1919
print(stdout)
20-
self.assertEquals(stdout.splitlines(), "Version: 0.2.0\nHello World!\n".splitlines())
20+
self.assertEquals(stdout.splitlines(), "Version: 0.1.0\nHello World!\n".splitlines())

0 commit comments

Comments
 (0)