Skip to content

Commit 5c20376

Browse files
joekickassTomas
authored andcommitted
Improve CI
- Use conda as build environment - Add test dependencies to extras_require - Add code coverage (coverage and codecov.io) - Update badges in README
1 parent a7c35ce commit 5c20376

File tree

5 files changed

+46
-13
lines changed

5 files changed

+46
-13
lines changed

.coveragerc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[run]
2+
branch = True
3+
omit =
4+
donkeycar/tests/*

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ build
1919
.spyproject
2020

2121
.pytest_cache
22+
23+
.coverage

.travis.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
11
language: python
22
python:
33
- 3.5
4-
cache: pip
4+
5+
os:
6+
- linux
7+
58
before_install:
69
- sudo apt-get update -qq
7-
- sudo apt-get install -y python3-numpy python3-scipy
10+
811
install:
9-
- pip3 install pytest nose opencv-python tensorflow
10-
- pip3 install .
12+
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
13+
- bash miniconda.sh -b -p $HOME/miniconda
14+
- export PATH="$HOME/miniconda/bin:$PATH"
15+
- hash -r
16+
- conda config --set always_yes yes --set changeps1 no
17+
- conda update -q conda
18+
- conda info -a
19+
- pip install -e .[tf]
20+
- pip install -e .[dev]
21+
- pip install -e .[ci]
22+
1123
script:
12-
- pytest
24+
- py.test --cov=donkeycar donkeycar/tests
25+
26+
after_success:
27+
- codecov
28+
1329
deploy:
1430
provider: pypi
1531
user: wroscoe

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# donkeycar: a python self driving library
22

3-
[![Build Status](https://travis-ci.org/wroscoe/donkey.svg?branch=master)](https://travis-ci.org/wroscoe/donkey)
3+
[![Build Status](https://travis-ci.org/joekickass/donkey.svg?branch=ti)](https://travis-ci.org/joekickass/donkey)
4+
[![CodeCov](https://codecov.io/gh/joekickass/donkey/branch/ti/graph/badge.svg)](https://codecov.io/gh/joekickass/donkey/branch/ti)
5+
[![Requirements Status](https://requires.io/github/joekickass/donkey/requirements.svg?branch=ti)](https://requires.io/github/joekickass/donkey/requirements/?branch=ti)
6+
[![PyPI version](https://badge.fury.io/py/donkeycar.svg)](https://badge.fury.io/py/donkeycar)
7+
[![Py versions](https://img.shields.io/pypi/pyversions/donkeycar.svg)](https://img.shields.io/pypi/pyversions/donkeycar.svg)
48

59
Donkeycar is minimalist and modular self driving library for Python. It is
610
developed for hobbiests and students with a focus on allowing fast experimentation and easy

setup.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,23 @@
3333
'eventlet',
3434
'moviepy',
3535
'pandas',
36-
'tensorflow>=1.1'
36+
'opencv-python'
3737
],
3838

3939
extras_require={
40-
'pi': [
41-
'picamera',
42-
'Adafruit_PCA9685',
43-
],
44-
'dev': ['pytest']
45-
},
40+
'tf': ['tensorflow>=1.7.0'],
41+
'tf_gpu': ['tensorflow-gpu>=1.7.0'],
42+
'pi': [
43+
'picamera',
44+
'Adafruit_PCA9685',
45+
],
46+
'dev': [
47+
'pytest',
48+
'pytest-cov',
49+
'responses'
50+
],
51+
'ci': ['codecov']
52+
},
4653

4754
include_package_data=True,
4855

0 commit comments

Comments
 (0)