Skip to content

Commit ac3894a

Browse files
committed
Add Travis CI test
1 parent 1eabaf2 commit ac3894a

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed

.travis.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: python
2+
python:
3+
- '2.7'
4+
- '3.5'
5+
- '3.6'
6+
install: make bootstrap
7+
script: make test
8+
branches:
9+
except:
10+
- /^v[0-9]/

Makefile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.PHONY: bootstrap clean lint test
2+
3+
lint:
4+
@flake8 .
5+
6+
clean:
7+
@find . -type f -name '*.pyc' -delete
8+
9+
bootstrap:
10+
@pip install -r requirements.txt
11+
@python setup.py develop
12+
13+
test: lint
14+
py.test --cov-report term-missing --cov=mind tests/

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# TinyMind CLI
22

3+
[![TravisCI](https://travis-ci.org/mind/cli.svg?branch=master)](https://travis-ci.org/mind/cli)
4+
35
This is the CLI for TinyMind, the easiest way to train and run machine learning models in the cloud.

requirements.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Dependencies
2+
requests==2.13.0
3+
4+
# Test dependencies
5+
pdbpp
6+
flake8
7+
pytest
8+
pytest-cov
9+
mock

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)