Skip to content

Commit

Permalink
Merge pull request #126 from datmo/os-builds
Browse files Browse the repository at this point in the history
moved build statuses to chart + add in circle ci for mac osx
  • Loading branch information
asampat3090 committed May 12, 2018
2 parents aee3388 + 60f3454 commit 27f3e52
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 10 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# ![Datmo Logo](images/datmo-logo.png)
[![PyPI version](https://badge.fury.io/py/datmo.svg)](https://badge.fury.io/py/datmo)
[![Build Status](https://travis-ci.org/datmo/datmo.svg?branch=master)](https://travis-ci.org/datmo/datmo)
[![Build status](https://ci.appveyor.com/api/projects/status/5302d8a23qr4ui4y/branch/master?svg=true)](https://ci.appveyor.com/project/asampat3090/datmo/branch/master)
[![Coverage Status](https://coveralls.io/repos/github/datmo/datmo/badge.svg?branch=master)](https://coveralls.io/github/datmo/datmo?branch=master)
[![Documentation Status](https://readthedocs.org/projects/datmo/badge/?version=latest)](http://datmo.readthedocs.io/en/latest/?badge=latest)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/853b3d01b4424ac9aa72f9d5fead83b3)](https://www.codacy.com/app/datmo/datmo)

| OS | CI testing on `master` |
|----|--------------------|
| <img height="20" src="http://icons.iconarchive.com/icons/dakirby309/simply-styled/256/OS-Linux-icon.png"> | [![Linux](https://travis-ci.org/datmo/datmo.svg?branch=master)](https://travis-ci.org/datmo/datmo) |
| <img height="20" src="http://icons.iconarchive.com/icons/dakirby309/windows-8-metro/128/Folders-OS-Windows-8-Metro-icon.png"> | [![Windows](https://ci.appveyor.com/api/projects/status/5302d8a23qr4ui4y/branch/master?svg=true)](https://ci.appveyor.com/project/asampat3090/datmo/branch/master) |

**Datmo** is an open source model tracking and reproducibility tool for developers. Use `datmo init` to turn any repository into a trackable task record with reusable environments and metrics logging.

### Table of Contents
Expand Down
24 changes: 16 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
|Datmo Logo|
============

|PyPI version| |Build Status| |Build status| |Coverage Status|
|Documentation Status| |Codacy Badge|
|PyPI version| |Coverage Status| |Documentation Status| |Codacy Badge|

+------+----------------------------+
| OS | CI testing on ``master`` |
+======+============================+
| | |Linux| |
+------+----------------------------+
| | |Windows| |
+------+----------------------------+

**Datmo** is an open source model tracking and reproducibility tool for
developers. Use ``datmo init`` to turn any repository into a trackable
Expand Down Expand Up @@ -101,7 +108,7 @@ leveraging Datmo.
| | config=config, |
| | stats=stats, |
| | ) # extra line |
+------------------------------------------------+--------------------------------------------+
+----------------------------------------------+----------------------------------------------+

In order to run the above code you can do the following.

Expand Down Expand Up @@ -304,16 +311,17 @@ Pull from remote
If you are interested in sharing using the datmo protocol, you can visit
`Datmo's website <https://datmo.com/product>`__

.. |Datmo Logo| image:: images/datmo-logo.png
.. |Datmo Logo| image:: ../images/datmo-logo.png
.. |PyPI version| image:: https://badge.fury.io/py/datmo.svg
:target: https://badge.fury.io/py/datmo
.. |Build Status| image:: https://travis-ci.org/datmo/datmo.svg?branch=master
:target: https://travis-ci.org/datmo/datmo
.. |Build status| image:: https://ci.appveyor.com/api/projects/status/5302d8a23qr4ui4y/branch/master?svg=true
:target: https://ci.appveyor.com/project/asampat3090/datmo/branch/master
.. |Coverage Status| image:: https://coveralls.io/repos/github/datmo/datmo/badge.svg?branch=master
:target: https://coveralls.io/github/datmo/datmo?branch=master
.. |Documentation Status| image:: https://readthedocs.org/projects/datmo/badge/?version=latest
:target: http://datmo.readthedocs.io/en/latest/?badge=latest
.. |Codacy Badge| image:: https://api.codacy.com/project/badge/Grade/853b3d01b4424ac9aa72f9d5fead83b3
:target: https://www.codacy.com/app/datmo/datmo
.. |Linux| image:: https://travis-ci.org/datmo/datmo.svg?branch=master
:target: https://travis-ci.org/datmo/datmo
.. |Windows| image:: https://ci.appveyor.com/api/projects/status/5302d8a23qr4ui4y/branch/master?svg=true
:target: https://ci.appveyor.com/project/asampat3090/datmo/branch/master

40 changes: 40 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
machine:

xcode:
version: 9.0

environment:
LOGGING_LEVEL: DEBUG
TEST_PACKAGE: python -m pytest

pre:
- echo "Creating python environments"
- curl -o mconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
- chmod +x mconda.sh
- ./mconda.sh -b -p $HOME/miniconda
- |
for version in 2.7.10 3.5.1 3.6.1
do
export PATH="$HOME/miniconda/bin:$PATH" && conda create --yes -n datmo_env$version python=$version pip;
export PATH="$HOME/miniconda/bin:$PATH" && source activate datmo_env$version && pip install pytest --user && source deactivate datmo_env$version
done
dependencies:

post:
- echo "Installing datmo to each environment"
- |
for version in 2.7.10 3.5.1 3.6.1
do
export PATH="$HOME/miniconda/bin:$PATH" && source activate datmo_env$version && python setup.py install && source deactivate datmo_env$version;
done
test:
override:
# Avoiding loop here, so that each test shown in separate tab in circle-ci
- echo "Running Test with 2.7.10"
- export PATH="$HOME/miniconda/bin:$PATH" && source activate datmo_env2.7.10 && $TEST_PACKAGE && source deactivate datmo_env2.7.10;
- echo "Running Test with 3.4.1"
- export PATH="$HOME/miniconda/bin:$PATH" && source activate datmo_env3.4.1 && $TEST_PACKAGE && source deactivate datmo_env3.4.1;
- echo "Running Test with 3.5.1"
- export PATH="$HOME/miniconda/bin:$PATH" && source activate datmo_env3.5.1 && $TEST_PACKAGE && source deactivate datmo_env3.5.1;
- echo "Running Test with 3.6.1"
- export PATH="$HOME/miniconda/bin:$PATH" && source activate datmo_env3.6.1 && $TEST_PACKAGE && source deactivate datmo_env3.6.1;

0 comments on commit 27f3e52

Please sign in to comment.