Skip to content
Permalink
Browse files

Merge pull request #159 from yarikoptic/bfs

BF(TST): list expected entries in sorted order (fix for matplotlib) + RF appveyor config
  • Loading branch information...
yarikoptic committed Aug 25, 2019
2 parents ddf079f + fc6ff34 commit 5de16287767ea9c47f029322dbdd5ce23363c1b6
Showing with 21 additions and 35 deletions.
  1. +0 −2 .travis.yml
  2. +19 −32 appveyor.yml
  3. +2 −1 duecredit/tests/test_injections.py
@@ -4,8 +4,6 @@ language: python
sudo: false
python:
- "2.7"
# - "3.2"
- "3.4"
- "3.5"
- "3.6"
- "3.7-dev"
@@ -1,28 +1,9 @@
environment:
matrix:
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.8"
PYTHON_ARCH: "32"
MINICONDA: C:\Miniconda

# TODO:
# Reenable whenever lxml whl becomes available for those
# otherwise it is a pain
#
# - PYTHON: "C:\\Python33"
# PYTHON_VERSION: "3.3.5"
# PYTHON_ARCH: "32"
# MINICONDA: C:\Miniconda3
#
- PYTHON: "C:\\Python34"
PYTHON_VERSION: "3.4.1"
PYTHON_ARCH: "32"
MINICONDA: C:\Miniconda3

- PYTHON: "C:\\Python35"
PYTHON_VERSION: "3.5.1"
PYTHON_ARCH: "32"
MINICONDA: C:\Miniconda35
- PYTHON: C:\Python27
- PYTHON: C:\Python35
- PYTHON: C:\Python36
- PYTHON: C:\Python37

init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH% %MINICONDA%"
@@ -31,17 +12,23 @@ init:
build: false

install:
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- "conda create -q -n test-environment python=%PYTHON_VERSION% contextlib2 pytest coverage requests six"
- activate test-environment
- pip install -r requirements.txt
- pip install -e .
# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%

- python -m pip install --upgrade pip virtualenv
- virtualenv --python=python venv
- venv\Scripts\activate
- python --version

# Install the dependencies of the project.
- pip install --upgrade pip setuptools>=27.0 wheel
- pip install -e .[tests]
- pip install coverage

test_script:
- coverage run --source duecredit -m py.test
- coverage run --source duecredit -m py.test -v
- python setup.py install

# for interactive debugging upon completion (have 30 min to react)
@@ -216,8 +216,10 @@ def test_no_double_activation():


def test_get_modules_for_injection():
# output order is sorted by name (not that it matters for functionality)
assert get_modules_for_injection() == ['mod_biosig',
'mod_dipy',
'mod_matplotlib',
'mod_mdp',
'mod_mne',
'mod_nibabel',
@@ -229,7 +231,6 @@ def test_get_modules_for_injection():
'mod_scipy',
'mod_skimage',
'mod_sklearn',
'mod_matplotlib'
]


0 comments on commit 5de1628

Please sign in to comment.
You can’t perform that action at this time.