Skip to content

Commit

Permalink
add .travis.yml for Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
wittawatj committed Apr 22, 2018
1 parent a166ed7 commit 7c037e2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .travis.yml
@@ -0,0 +1,33 @@
language: python
python:
- 2.7
- 3.6

before_install:
- sudo apt-get update -yq
- sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
#- sudo apt-get install python-numpy python-scipy python-matplotlib
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda update --yes conda
- conda config --add channels conda-forge
- conda info -a

install:
- conda create -n testenv pip python=$TRAVIS_PYTHON_VERSION --yes
- source activate testenv
- conda install --yes python=$TRAVIS_PYTHON_VERSION pip numpy scipy nose future autograd matplotlib
#- pip install -r requirements.txt

# command to run tests
script:
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then python -m unittest discover; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then python -m unittest discover; fi

notifications:
email:
recipients:
- wittawatj@gmail.com
on_success: change
on_failure: change
2 changes: 2 additions & 0 deletions README.md
@@ -1,5 +1,7 @@
# Interpretable Test

[![Build Status](https://travis-ci.org/wittawatj/interpretable-test.svg?branch=master)](https://travis-ci.org/wittawatj/interpretable-test)

**17 April 2018**: We updated the code base to provide support for both Python
3 and Python 2.7. Please contact [Wittawat Jitkrittum](http://wittawat.com) if
you found a bug.
Expand Down

0 comments on commit 7c037e2

Please sign in to comment.