Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • .appveyor.yml

    r8ced1e8 rac26526  
    44environment:
    55
    6   global:
    7       CUSTOM64PATH: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
    8 
    96  matrix:
    107
    118    # pre-installed python version, see:
    129    # http://www.appveyor.com/docs/installed-software#python
    13     - PYTHONDIR: C:\Python27
    14       PYTHON_VERSION: 2.7.x
    15       PYTHON_ARCH: 32
     10    - PYTHONDIR: "C:\\Python27"
     11      PYTHON_VERSION: "2.7.x"
     12      PYTHON_ARCH: "32"
    1613
    17     - PYTHONDIR: C:\Python27-x64
    18       PYTHON_VERSION: 2.7.x
    19       PYTHON_ARCH: 64
     14    - PYTHONDIR: "C:\\Python27-x64"
     15      PYTHON_VERSION: "2.7.x"
     16      PYTHON_ARCH: "64"
    2017
    21     - PYTHONDIR: C:\Python35
    22       PYTHON_VERSION: 3.5.x
    23       PYTHON_ARCH: 32
     18    - PYTHONDIR: "C:\\Python34"
     19      PYTHON_VERSION: "3.4.x"
     20      PYTHON_ARCH: "32"
    2421
    25     - PYTHONDIR: C:\Python35-x64
    26       PYTHON_VERSION: 3.5.x
    27       PYTHON_ARCH: 64
     22    - PYTHONDIR: "C:\\Python34-x64"
     23      PYTHON_VERSION: "3.4.x"
     24      PYTHON_ARCH: "64"
    2825
    29     - PYTHONDIR: C:\Python36
    30       PYTHON_VERSION: 3.6.x
    31       PYTHON_ARCH: 32
     26    - PYTHONDIR: "C:\\Python35"
     27      PYTHON_VERSION: "3.5.x"
     28      PYTHON_ARCH: "32"
    3229
    33     - PYTHONDIR: C:\Python36-x64
    34       PYTHON_VERSION: 3.6.x
    35       PYTHON_ARCH: 64
    36 
    37     - PYTHONDIR: C:\Python37
    38       PYTHON_VERSION: 3.7.x
    39       PYTHON_ARCH: 32
    40 
    41     - PYTHONDIR: C:\Python37-x64
    42       PYTHON_VERSION: 3.7.x
    43       PYTHON_ARCH: 64
     30    - PYTHONDIR: "C:\\Python35-x64"
     31      PYTHON_VERSION: "3.5.x"
     32      PYTHON_ARCH: "64"
     33      # add path required to run preprocessor step
     34      PATH_EXTRAS: "c:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin"
    4435
    4536install:
     
    4839  - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
    4940
    50   - "SET PATH=%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%"
     41  # Check that we have the expected version and architecture for Python
     42  - "%PYTHONDIR%\\python.exe --version"
     43  - "%PYTHONDIR%\\python.exe -c \"import struct; print(struct.calcsize('P') * 8)\""
    5144
    52   - if [%PYTHON_ARCH%]==[64] SET PATH=%CUSTOM64PATH%;%PATH%
    53 
    54   # Check that we have the expected version and architecture for Python
    55   - "python --version"
    56   - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
    57 
    58   - "python -m pip install --disable-pip-version-check --user --upgrade pip"
    59   - "python -m pip install --upgrade setuptools"
     45  - "%PYTHONDIR%\\python.exe -m pip install --disable-pip-version-check --user --upgrade pip"
     46  - "%PYTHONDIR%\\python.exe -m pip install --upgrade setuptools"
    6047
    6148  # We need wheel installed to build wheels
    62   - "python -m pip install wheel"
     49  - "%PYTHONDIR%\\python.exe -m pip install wheel"
    6350
    64   - "pip install -r requirements.txt"
     51  - "SET PATH=%PATH_EXTRAS%;%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%"
    6552
    6653before_build:
     
    6855
    6956build_script:
    70   # also build libaubio with waf
    71   - python waf configure build install --verbose --msvc_version="msvc 14.0"
    72   # clean before building python package
    73   - python waf distclean
    7457  # build python module without using libaubio
    75   - pip wheel -v -v -v --wheel-dir=dist .
    76   # build, upload and install wheel (inspired by numpy's appveyor)
    77   - ps: |
    78       pip wheel -v -v -v --wheel-dir=dist .
    79       ls dist -r | Foreach-Object {
    80           Push-AppveyorArtifact $_.FullName
    81           pip install $_.FullName
    82       }
    83 
    84 test_script:
     58  - "%PYTHONDIR%\\python.exe -m pip install -r requirements.txt"
     59  - "python setup.py build"
     60  - "%PYTHONDIR%\\python.exe -m pip install ."
    8561  - "python python\\demos\\demo_create_test_sounds.py"
    8662  - "nose2 --verbose"
     63  # clean up
     64  - "python waf distclean"
     65  # build libaubio
     66  - python waf configure build --verbose --msvc_version="msvc 14.0"
Note: See TracChangeset for help on using the changeset viewer.