Skip to content

Commit

Permalink
Implement AppVeyor for PDAL/Python repository (#25)
Browse files Browse the repository at this point in the history
* add appveyor config

* point to scripts

* need cython and packaging

* add appveyor badge
  • Loading branch information
hobu committed Apr 2, 2019
1 parent b8b1929 commit 5ca8b4f
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .appveyor.yml
@@ -0,0 +1,33 @@
version: 1.0.{build}

os: Visual Studio 2015

platform: x64


matrix:
fast_finish: true

# Should speed up repository cloning
#
shallow_clone: true
clone_depth: 5

#init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

cache:
C:\Miniconda3-x64\pkgs -> appveyor.yml

install:
- call scripts\\appveyor\\config.cmd

build_script:
- call scripts\\appveyor\\build.cmd

test_script:
- call scripts\\appveyor\\test.cmd
-
3 changes: 3 additions & 0 deletions README.rst
Expand Up @@ -50,6 +50,9 @@ sorts it by the ``X`` dimension:
.. image:: https://travis-ci.org/PDAL/python.svg?branch=master
:target: https://travis-ci.org/PDAL/python

.. image:: https://ci.appveyor.com/api/projects/status/of4kecyahpo8892d
:target: https://ci.appveyor.com/project/hobu/python/

Requirements
================================================================================

Expand Down
7 changes: 7 additions & 0 deletions scripts/appveyor/build.cmd
@@ -0,0 +1,7 @@
call "%CONDA_ROOT%\Scripts\activate.bat" base
call conda install -c conda-forge -y pdal cython packaging

call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64

python setup.py build

16 changes: 16 additions & 0 deletions scripts/appveyor/config.cmd
@@ -0,0 +1,16 @@
@echo off

set "CONDA_ROOT=C:\Miniconda3-x64"
set PATH=%CONDA_ROOT%;%CONDA_ROOT%\\scripts;%CONDA_ROOT%\\Library\\bin;%PATH%;C:\\Program Files (x86)\\CMake\\bin
conda config --set always_yes yes
conda config --add channels conda-forge
conda config --set auto_update_conda no
conda config --set channel_priority true
conda update -q --all
conda info
python -c "import sys; print(sys.version)"
python -c "import sys; print(sys.executable)"
python -c "import sys; print(sys.prefix)"

dir

3 changes: 3 additions & 0 deletions scripts/appveyor/test.cmd
@@ -0,0 +1,3 @@
call "%CONDA_ROOT%\Scripts\activate.bat" base

python setup.py test

0 comments on commit 5ca8b4f

Please sign in to comment.