Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #534 from marscher/appveyor_use_miniconda
Browse files Browse the repository at this point in the history
[appveyor] use pre-installed miniconda
  • Loading branch information
marscher committed Aug 31, 2015
2 parents 9e827d1 + f4194e3 commit 6f837d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 199 deletions.
23 changes: 6 additions & 17 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,23 @@ environment:
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\tools\\ci\\appveyor\\run_with_env.cmd"

matrix:
- PYTHON: "C:\\Python27_32"
PYTHON_VERSION: "2.7.8"
- PYTHON: "C:\\Miniconda"
CONDA_PY: "27"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python27_64"
PYTHON_VERSION: "2.7.8"
- PYTHON: "C:\\Miniconda-x64"
CONDA_PY: "27"
PYTHON_ARCH: "64"
ARCH: "64"

- PYTHON: "C:\\Python34_32"
PYTHON_VERSION: "3.4.1"
- PYTHON: "C:\\Miniconda3"
CONDA_PY: "34"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python34_64"
PYTHON_VERSION: "3.4.1"
- PYTHON: "C:\\Miniconda3-x64"
CONDA_PY: "34"
PYTHON_ARCH: "64"
ARCH: "64"

install:
- "powershell ./tools/ci/appveyor/install.ps1"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%;"

# Check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- conda config --set always_yes true
- conda config --add channels http://conda.binstar.org/omnia
- conda install -q conda-build jinja2
Expand All @@ -51,4 +41,3 @@ build: false # Not a C# project, build stuff at the test step instead.
test_script:
# run testsuite and upload test results to AppVeyor; return exit code of testsuite
- conda build -q tools/conda-recipe

180 changes: 0 additions & 180 deletions tools/ci/appveyor/install.ps1

This file was deleted.

4 changes: 2 additions & 2 deletions tools/ci/appveyor/run_with_env.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
SET COMMAND_TO_RUN=%*
SET WIN_SDK_ROOT=C:\Program Files\Microsoft SDKs\Windows

SET MAJOR_PYTHON_VERSION="%PYTHON_VERSION:~0,1%"
SET MAJOR_PYTHON_VERSION="%CONDA_PY:~0,1%"
IF %MAJOR_PYTHON_VERSION% == "2" (
SET WINDOWS_SDK_VERSION="v7.0"
) ELSE IF %MAJOR_PYTHON_VERSION% == "3" (
Expand All @@ -32,7 +32,7 @@ IF %MAJOR_PYTHON_VERSION% == "2" (
EXIT 1
)

IF "%PYTHON_ARCH%"=="64" (
IF "%ARCH%"=="64" (
ECHO Configuring Windows SDK %WINDOWS_SDK_VERSION% for Python %MAJOR_PYTHON_VERSION% on a 64 bit architecture
SET DISTUTILS_USE_SDK=1
SET MSSdk=1
Expand Down

0 comments on commit 6f837d1

Please sign in to comment.