Skip to content

Commit

Permalink
Merge pull request #56 from sinhrks/travis
Browse files Browse the repository at this point in the history
TST: Travis Build Matrix
  • Loading branch information
sinhrks committed Nov 1, 2015
2 parents 3ed5a08 + a961281 commit 994197d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
@@ -1,9 +1,11 @@
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"

env:
- PYTHON=2.7 PANDAS=0.16.0 SKLEARN=0.16.1
- PYTHON=2.7 PANDAS=0.17.0 SKLEARN=0.16.1
- PYTHON=3.4 PANDAS=0.16.0 SKLEARN=0.16.1
- PYTHON=3.4 PANDAS=0.17.0 SKLEARN=0.16.1
- PYTHON=3.5 PANDAS=0.17.0 SKLEARN=0.16.1

addons:
apt:
Expand Down
4 changes: 3 additions & 1 deletion pandas_ml/test/test_frame.py
Expand Up @@ -387,7 +387,9 @@ def test_frame_target_proparty(self):
self.assert_index_equal(mdf.index, pd.Index(['a', 'b', 'c']))
self.assert_index_equal(mdf.columns, pd.Index(['.target', 'A', 'B', 'C']))
self.assert_frame_equal(mdf.data, df)
self.assert_series_equal(mdf.target, new, check_names=False)

exp_target = pd.Series(new, name='.target')
self.assert_series_equal(mdf.target, exp_target)
self.assertEqual(mdf.target.name, '.target')
self.assertEqual(mdf.target_name, '.target')

Expand Down
4 changes: 2 additions & 2 deletions scripts/build_travis.sh
Expand Up @@ -12,9 +12,9 @@ conda update -q conda
#Useful for debugging any issues with conda
conda info -a

conda create -n myenv "python=$TRAVIS_PYTHON_VERSION"
conda create -n myenv "python=$PYTHON"
source activate myenv
conda install numpy scipy matplotlib scikit-learn pandas patsy statsmodels nose
conda install numpy scipy matplotlib "scikit-learn=$SKLEARN" "pandas=$PANDAS" patsy statsmodels nose

python -m pip install python-coveralls coverage
python -m pip install graphviz
Expand Down

0 comments on commit 994197d

Please sign in to comment.