Skip to content

Commit

Permalink
Testing: Simplify appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Sep 23, 2018
1 parent d279a4a commit 60cfc61
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,13 @@ environment:
# Environment variables used by astropy helpers
PYTHON: "C:\\conda"
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci-helpers\\appveyor\\windows_sdk.cmd"
PYTHON_ARCH: "64" # needs to be set for CMD_IN_ENV to succeed. If a mix
# of 32 bit and 64 bit builds are needed, move this
# to the matrix section.
PYTHON_ARCH: "64"
CONDA_DEPENDENCIES: "line_profiler mock pytest spyder"
PIP_DEPENDENCIES_2: "pytest-qt" # Fix when fixed upstream
PIP_DEPENDENCIES: "pytest-qt"

matrix:
# PyQt5
- PYTHON_VERSION: "3.5"
USE_QT_API: "PyQt5"
PYTEST_QT_API: "pyqt5"
- PYTHON_VERSION: "3.6"
- PYTHON_VERSION: "2.7"
USE_QT_API: "PyQt5"
PYTEST_QT_API: "pyqt5"

platform:
-x64
Expand All @@ -48,19 +41,12 @@ install:
- "powershell ci-helpers/appveyor/install-miniconda.ps1"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "activate test"
# Install pip dependencies.
- "pip install %PIP_DEPENDENCIES_2%"
# Install the selected Qt version
- if "%USE_QT_API%" == "PyQt5" conda install qt=5.* pyqt=5.*
- if "%USE_QT_API%" == "PySide2" conda install qt=5.* pyside2
- if "%USE_QT_API%" == "PyQt4" conda install qt=4.* pyqt=4.*
- if "%USE_QT_API%" == "PySide" conda install qt=4.* pyside
- "python setup.py develop"
- "pip install -e ."
- "spyder --reset"
- "spyder"

# Not a .NET project, we build in the install step instead
build: false

test_script:
- py.test spyder_line_profiler
- pytest -x -vv spyder_line_profiler

0 comments on commit 60cfc61

Please sign in to comment.