Skip to content

Commit

Permalink
Merge pull request #31 from ljvmiranda921/development
Browse files Browse the repository at this point in the history
PR to add dependencies for tests.utils.environment.test_plot_environment
  • Loading branch information
Lj Miranda committed Sep 24, 2017
2 parents 7891f9a + 176a1cc commit 1388c0d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -22,7 +22,9 @@ deploy:
repo: ljvmiranda921/pyswarms
tags: true
install:
- "pip install -U tox-travis"
- sudo apt-get update
- sudo apt-get install libav-tools
- pip install -U tox-travis
language: python
python:
- 3.6
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Expand Up @@ -17,6 +17,7 @@
'scipy>=0.17.0',
'numpy>=1.13.0',
'matplotlib>=1.3.1',
'mock==2.0.0',
]

setup_requirements = [
Expand All @@ -29,6 +30,7 @@
'scipy>=0.17.0',
'numpy>=1.13.0',
'matplotlib>=1.3.1',
'mock==2.0.0',
]

setup(
Expand Down
Empty file.
6 changes: 6 additions & 0 deletions tests/utils/environments/test_plot_environment.py
Expand Up @@ -7,12 +7,18 @@
from __future__ import print_function

# Import modules
import os
import unittest
import numpy as np
from mock import Mock
import matplotlib as mpl
from matplotlib.axes._subplots import SubplotBase
from matplotlib.animation import FuncAnimation

# Fix for display
if os.environ.get('DISPLAY','') == '':
mpl.use('Agg')

# Import from package
from pyswarms.utils.environments import PlotEnvironment
from pyswarms.single import GlobalBestPSO
Expand Down

0 comments on commit 1388c0d

Please sign in to comment.