Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
944ee00
only python 2.7; add test_Var
stephanielingwood Mar 9, 2016
c7feb80
new yml
stephanielingwood Apr 1, 2016
d633bc8
add docker integration
stephanielingwood Apr 1, 2016
8a0f2aa
remove dash
stephanielingwood Apr 1, 2016
94d7517
check node version
stephanielingwood Jun 27, 2016
b374fdd
check npm version
stephanielingwood Jun 27, 2016
32de0f2
nvm ls
stephanielingwood Jun 27, 2016
79143eb
source nvm
stephanielingwood Jun 27, 2016
0ecc125
look for nvm
stephanielingwood Jun 27, 2016
b0e77c5
look for bashrc
stephanielingwood Jun 27, 2016
76ee3af
change bashrc path
stephanielingwood Jun 27, 2016
2db0522
Update shippable.yml
stephanielingwood Aug 8, 2016
d145a09
Update shippable.yml
stephanielingwood Sep 6, 2016
5890254
Update README.md
stephanielingwood Sep 21, 2016
bd299d0
Update app.py
stephanielingwood Sep 21, 2016
27e2a01
Update app.py
stephanielingwood Sep 21, 2016
090ef15
Update test.py
stephanielingwood Sep 21, 2016
37b2ac3
Update README.md
stephanielingwood Sep 21, 2016
482dfb0
Update test.py
stephanielingwood Sep 21, 2016
922207b
Update README.md
stephanielingwood Sep 21, 2016
43dc11c
Update README.md
stephanielingwood Sep 21, 2016
7f78369
Update README.md
stephanielingwood Sep 21, 2016
d41b8d8
!@#$%^&*()-_=+.>"':;`~,</?\|}{][
stephanielingwood Jan 23, 2017
08aed1a
!@#$%^&*()-_=+.>"':;`~,</?\|}{][
stephanielingwood Jan 23, 2017
c3201c1
Update shippable.yml
stephanielingwood Jan 25, 2017
314effb
\\"Error (yo)\\"
stephanielingwood Feb 8, 2017
01216d9
Update shippable.yml
stephanielingwood Feb 21, 2017
b8fc632
Update shippable.yml
stephanielingwood Feb 21, 2017
17ed0e4
Update shippable.yml
stephanielingwood Feb 21, 2017
8a794a4
Update shippable.yml
stephanielingwood Feb 21, 2017
aab3dcf
Update shippable.yml
stephanielingwood Feb 21, 2017
f6f32f6
Update shippable.yml
stephanielingwood Feb 23, 2017
6a7a166
Update shippable.yml
stephanielingwood Feb 24, 2017
5fc1f86
Update shippable.yml
stephanielingwood Feb 24, 2017
a621124
Update shippable.yml
stephanielingwood Feb 24, 2017
5a88ad2
Update shippable.yml
stephanielingwood Feb 24, 2017
4becae2
Update shippable.yml
stephanielingwood Feb 24, 2017
ff67bad
Update shippable.yml
stephanielingwood Feb 24, 2017
78e9c81
remove docker login
stephanielingwood Mar 23, 2017
56c8e2e
Update shippable.yml
stephanielingwood Mar 29, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,23 @@ Simple Python sample with tests using Nose and Coverage.

This sample is built for Shippable, a docker based continuous integration and deployment platform.
change 1 in testing branch

[![Run Status](https://api.shippable.com/projects/558b1fbaedd7f2c05238735d/badge?branch=noMatrix)](https://app.shippable.com/projects/558b1fbaedd7f2c05238735d)

[![Coverage Badge](https://api.shippable.com/projects/558b1fbaedd7f2c05238735d/coverageBadge?branch=noMatrix)](https://app.shippable.com/projects/558b1fbaedd7f2c05238735d)


beta:
[![Run Status](https://apibeta.shippable.com/projects/564e6fb2d78fc6fc59652b5e/badge?branch=noMatrix)](https://beta.shippable.com/projects/564e6fb2d78fc6fc59652b5e)
[![Coverage Badge](https://apibeta.shippable.com/projects/564e6fb2d78fc6fc59652b5e/coverageBadge?branch=noMatrix)](https://beta.shippable.com/projects/564e6fb2d78fc6fc59652b5e)

beta2:
[![Run Status](https://api.qhode.com/projects/57d1e17c5aae6c100052a705/badge?branch=noMatrix)](https://qhode.com/projects/57d1e17c5aae6c100052a705)

[![Coverage Badge](https://api.qhode.com/projects/57d1e17c5aae6c100052a705/coverageBadge?branch=noMatrix)](https://qhode.com/projects/57d1e17c5aae6c100052a705)

local:

[![Run Status](http://50befe32.ngrok.io/projects/57e2ccdda2052818009345e9/badge?branch=noMatrix)](http://localhost:50001/projects/57e2ccdda2052818009345e9)

[![Coverage Badge](http://50befe32.ngrok.io/projects/57e2ccdda2052818009345e9/coverageBadge?branch=noMatrix)](http://localhost:50001/projects/57e2ccdda2052818009345e9)
8 changes: 8 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@ def __init__(self):
self.var1 = 15

def calculate(self):
if self.var1 < 10:
print('foo')
self.result = self.var1 * 4 + 2

def retrieve(self):
return self.result

def notcalled(self):
return 1

def anothernotcalled(self):
return 2

if __name__ == "__main__":
app = App()
Expand Down
46 changes: 25 additions & 21 deletions shippable.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
language: python

python:
- 2.6
- 2.7
- 3.2
- 3.3
- 3.4
- pypy

install:
- pip install -r requirements.txt
#python:
# - 3.5

# Make folders for the reports
before_script:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
#env:
# global:
# - TEST_VAR=reallyAwesomeString

script:
- nosetests test.py --with-xunit --xunit-file=shippable/testresults/nosetests.xml
- which python && coverage run --branch test.py
- which python && coverage xml -o shippable/codecoverage/coverage.xml test.py
matrix:
include:
- python: 3.5

notifications:
email:
- exampleone@org.com
build:
# pre_ci_boot:
# image_name: manishas/myImage
# image_tag: latest
# pull: true
# options: "-e HOME=/root"
ci:
- pip install --disable-pip-version-check --upgrade pip
- pip install --upgrade wheel
- pip install -r requirements.txt
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- nosetests test.py --with-xunit --xunit-file=shippable/testresults/nosetests.xml
- which python && coverage run --branch test.py
- which python && coverage xml -o shippable/codecoverage/coverage.xml test.py
on_success:
- pip install python-coveralls