Skip to content

Commit

Permalink
Integrate coveralls for test coverage (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
utsavgarg authored and deshraj committed Jun 16, 2017
1 parent d2a3d85 commit ea42d6b
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 23 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-ci
repo_token: pRtqMs56eQ9z9bXUNvESwld0f5E98utL9
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist: trusty
sudo: required

language: python
Expand All @@ -8,17 +9,25 @@ python:
cache:
directories:
- $HOME/.cache/pip
- $HOME/caffe

before_cache:
- rm -f $HOME/.cache/pip/log/debug.log

install:
- pip install -r requirements/dev.txt
- . $HOME/.nvm/nvm.sh
- sh requirements/caffe_tensorflow_install.sh
- nvm install stable
- nvm use stable
- npm install

before_script:
- export PYTHONPATH=$PYTHONPATH:$HOME/caffe/caffe/python
script:
- flake8 ./
- npm run ci
- coverage run --source=caffe_app manage.py test

after_success:
- coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Join the chat at https://gitter.im/Cloud-CV/IDE](https://badges.gitter.im/Cloud-CV/IDE.svg)](https://gitter.im/Cloud-CV/IDE?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/Cloud-CV/Fabrik.svg?branch=master)](https://travis-ci.org/Cloud-CV/Fabrik)
[![Coverage Status](https://coveralls.io/repos/github/Cloud-CV/Fabrik/badge.svg?branch=coveralls)](https://coveralls.io/github/Cloud-CV/Fabrik?branch=coveralls)

This is a React+Django webapp with a simple drag and drop interface to build and configure deep neural networks with support for export of model configuration files to caffe and tensorflow. It also supports import from these frameworks to visualize different model architectures. Our motivation is to build an online IDE where researchers can share models and collaborate without having to deal with deep learning code.

Expand Down
48 changes: 25 additions & 23 deletions requirements/caffe_tensorflow_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,31 @@ echo "Installing caffe specific dependencies"
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler
sudo apt-get install --no-install-recommends libboost-all-dev

#Download caffe
echo "Downloading caffe"
cd
mkdir caffe
cd caffe
wget https://github.com/BVLC/caffe/archive/25391bf9e0552740af8253c6d6fd484297889a49.zip
unzip -o 25391bf9e0552740af8253c6d6fd484297889a49.zip
rm 25391bf9e0552740af8253c6d6fd484297889a49.zip
mv caffe-25391bf9e0552740af8253c6d6fd484297889a49 caffe
cd caffe

#Install caffe
echo "Installing caffe"
cp Makefile.config.example Makefile.config
CPU_ONLY=1 USE_OPENCV=0 make all -j4

#Install pycaffe
echo "Install PyCaffe"
CPU_ONLY=1 USE_OPENCV=0 make pycaffe -j2

echo "export PYTHONPATH=$(pwd)/python:$PYTHONPATH" > ~/.bash_profile
source ~/.bash_profile

if [ ! -d $HOME/caffe/caffe ]; then
#Download caffe
echo "Downloading caffe"
cd
mkdir caffe
cd caffe
wget https://github.com/BVLC/caffe/archive/25391bf9e0552740af8253c6d6fd484297889a49.zip
unzip -o 25391bf9e0552740af8253c6d6fd484297889a49.zip
rm 25391bf9e0552740af8253c6d6fd484297889a49.zip
mv caffe-25391bf9e0552740af8253c6d6fd484297889a49 caffe
cd caffe

#Install caffe
echo "Installing caffe"
cp Makefile.config.example Makefile.config
CPU_ONLY=1 USE_OPENCV=0 make all -j4

#Install pycaffe
echo "Install PyCaffe"
CPU_ONLY=1 USE_OPENCV=0 make pycaffe -j2

echo "export PYTHONPATH=$(pwd)/python:$PYTHONPATH" > ~/.bash_profile
source ~/.bash_profile
export PYTHONPATH=$(pwd)/python
fi
echo "#################### Caffe Install Complete! ####################"

echo "Installing Tensorflow dependencies"
Expand Down
1 change: 1 addition & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

pep8==1.7.0
flake8==3.0.4
python-coveralls==2.9.1

0 comments on commit ea42d6b

Please sign in to comment.