Skip to content

Commit

Permalink
Setting up for testing with travis.
Browse files Browse the repository at this point in the history
Beware no unit tests done yet.
  • Loading branch information
Ragav Venkatesan committed Nov 13, 2016
1 parent 3d4e3f1 commit d3340e5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: python
python:
- "2.6"
- "2.7"
# command to install dependencies copied this from like many github toolboxes out there
install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- pip install .
- pip install -r requirements.txt
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION theano skdata numpy scipy matplotlib pandas pytest h5py
- source activate test-environment
- python setup.py install

# command to run tests
script: pytest
1 change: 1 addition & 0 deletions pytest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print "Tests not made yet, just setup for the travis site."

0 comments on commit d3340e5

Please sign in to comment.