|
1 | | -version: '0.7.0.{build}' |
| 1 | +version: '1.0.{build}' # This number doesn't matter |
2 | 2 |
|
3 | 3 | pull_requests: |
4 | 4 | do_not_increment_build_number: true |
5 | 5 |
|
6 | | -image: Visual Studio 2015 |
7 | | - |
8 | | -init: |
9 | | - - git config --global core.autocrlf input |
10 | | - - cmd: cmake --version |
11 | | - - cmd: msbuild /version |
12 | | - |
13 | 6 | platform: |
14 | 7 | - x64 |
15 | 8 |
|
| 9 | +image: Visual Studio 2015 |
| 10 | + |
16 | 11 | clone_folder: C:\projects\libgpuarray |
17 | 12 |
|
18 | 13 | configuration: |
19 | 14 | - Release |
20 | | - - Debug |
21 | 15 |
|
22 | 16 | environment: |
23 | 17 | matrix: |
24 | | - - PYTHON: "C:\\Python27" |
25 | | - VS_PATH: "C:\\Users\\appveyor\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0" |
26 | | - - PYTHON: "C:\\Python35" |
27 | | - VS_PATH: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC" |
| 18 | + - CONDA_LOC: "C:\\Miniconda-x64" |
| 19 | + - CONDA_LOC: "C:\\Miniconda35-x64" |
28 | 20 |
|
29 | 21 | install: |
30 | | - - python -m pip install mako cython |
31 | | - |
32 | | -build_script: |
33 | | - - echo "Python:" "%PYTHON%" |
34 | | - - echo "Config:" "%CONFIGURATION%" |
35 | | - - echo "VS path:" "%VS_PATH%" |
36 | | - - cd "%VS_PATH%" |
37 | | - - vcvarsall x64 |
38 | | - - set |
39 | | - - cd C:\projects\libgpuarray |
40 | | - - md %CONFIGURATION% |
41 | | - - cd %CONFIGURATION% |
42 | | - - cmake .. -DCMAKE_BUILD_TYPE=%CONFIGURATION% -G "NMake Makefiles" |
43 | | - - cmake --build . --config %CONFIGURATION% |
44 | | - |
45 | | -build: script |
| 22 | + # This breaks conda-build because of git |
| 23 | + - cmd: rmdir C:\cygwin /s /q |
| 24 | + - cmd: call %CONDA_LOC%\Scripts\activate.bat |
| 25 | + - cmd: set PYTHONUNBUFFERED=1 |
| 26 | + - cmd: conda install -n root --yes conda conda-env conda-build anaconda-client |
| 27 | + # We borrow a trick from conda-forge to fix the VS2008 compiler |
| 28 | + - cmd: conda config --append channels conda-forge |
| 29 | + - cmd: conda install --yes vs2008_express_vc_python_patch |
| 30 | + - cmd: call setup_x64 |
| 31 | + |
| 32 | +build: off |
| 33 | + |
| 34 | +test_script: |
| 35 | + - cmd: for /f "tokens=*" %%i in ('python -c "import versioneer; print(versioneer.get_version())"') do set GPUARRAY_VERSION=%%i |
| 36 | + - cmd: conda build conda |
| 37 | + - cmd: mkdir pkgs |
| 38 | + - cmd: xcopy "%CONDA_LOC%"\conda-bld\win-64\pygpu* pkgs\ /Y |
| 39 | + - cmd: xcopy "%CONDA_LOC%"\conda-bld\win-64\libgpuarray* pkgs\ /Y |
| 40 | + |
| 41 | +artifacts: |
| 42 | + - path: pkgs/* |
| 43 | + name: "Conda Packages" |
| 44 | + |
| 45 | +#deploy: |
| 46 | +# on: |
| 47 | +# appveyor_repo_tag: true |
0 commit comments