forked from LABSN/expyfun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
39 lines (34 loc) · 1.5 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
environment:
matrix:
- PYTHON: "C:\\Python37-x64"
PYTHON_ARCH: "64"
platform:
-x64
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "python --version"
- "pip install -q numpy scipy matplotlib coverage setuptools h5py pandas pytest pytest-cov pytest-timeout pytest-xdist codecov \"pyglet!=1.5.16\" mne tdtpy joblib numpydoc pillow"
- "python -c \"import mne; mne.sys_info()\""
- "python -c \"import pyglet; print(pyglet.version)\""
# Get a virtual sound card / VBAudioVACWDM device
- "git clone --depth 1 git://github.com/LABSN/sound-ci-helpers.git"
- "powershell sound-ci-helpers/windows/setup_sound.ps1"
- "pip install rtmixer"
- "python -m sounddevice"
# OpenGL (should provide a Gallium driver)
- "git clone --depth 1 git://github.com/pyvista/gl-ci-helpers.git"
- "powershell gl-ci-helpers/appveyor/install_opengl.ps1"
- "python -c \"import pyglet; r = pyglet.gl.gl_info.get_renderer(); print(r); assert 'gallium' in r.lower()\""
# expyfun
- "powershell make/get_video.ps1"
- "python setup.py develop"
build: false # Not a C# project, build stuff at the test step instead.
test_script:
# Ensure that video works
- "python -c \"from ctypes import cdll; print(cdll.LoadLibrary('avcodec-58'))\""
- "python -c \"from ctypes import cdll; print(cdll.LoadLibrary('avformat-58'))\""
- "python -c \"import expyfun; assert expyfun._utils._has_video(raise_error=True)\""
# Run the project tests
- "pytest -n 1 --tb=short --cov=expyfun expyfun"
on_success:
- "codecov"