Skip to content
Snippets Groups Projects
Commit 18164192 authored by jlaura's avatar jlaura Committed by acpaquette
Browse files

Appveyor (#115)

* Fixes failing tests

* removes python 3.5 support

* Skips conda upload if a PR

* updates appveyor

* ncurses issues; maybe install order?

* Testing removing packages win is struggling with

* Readds build phase

* fixes apvpeyor test phase

* tests passing, now conda build

* Removes push to conda

* Removes x86 support - pytest issues

* Removes print
parent 43e343a6
No related branches found
No related tags found
No related merge requests found
...@@ -2,50 +2,30 @@ branches: ...@@ -2,50 +2,30 @@ branches:
only: only:
- master - master
version: '0.1.0.{build}' version: 1.2.0.{build}'
platform: platform:
- x64 - x64
- x86
environment: environment:
matrix: matrix:
- PYTHON: "C:\\Miniconda35-x64\\Scripts\\activate.bat"
PYTHON_VERSION: 3.5
- PYTHON: "C:\\Miniconda36-x64\\Scripts\\activate.bat" - PYTHON: "C:\\Miniconda36-x64\\Scripts\\activate.bat"
PYTHON_VERSION: 3.6 PYTHON_VERSION: 3.6
- PYTHON: "C:\\Miniconda35\\Scripts\\activate.bat" - PYTHON: "C:\\Miniconda37-x64\\Scripts\\activate.bat"
PYTHON_VERSION: 3.5 PYTHON_VERSION: 3.7
- PYTHON: "C:\\Miniconda36\\Scripts\\activate.bat"
PYTHON_VERSION: 3.6
matrix:
exclude:
- PYTHON: "C:\\Miniconda35-x64\\Scripts\\activate.bat"
platform: x86
- PYTHON: "C:\\Miniconda36-x64\\Scripts\\activate.bat"
platform: x86
- PYTHON: "C:\\Miniconda35\\Scripts\\activate.bat"
platform: x64
- PYTHON: "C:\\Miniconda36\\Scripts\\activate.bat"
platform: x64
configuration: configuration:
- Release - Release
install: install:
- mkdir C:\Users\appveyor\.conda
- cmd: call %PYTHON% - cmd: call %PYTHON%
- cmd: conda config --set always_yes yes --set changeps1 no - cmd: conda config --set always_yes yes --set changeps1 no
- cmd: conda update -q conda - cmd: conda update -q conda
- cmd: conda install conda-build anaconda-client
- cmd: conda create -q -n test_env python=%PYTHON_VERSION%
- cmd: activate test_env
- cmd: conda config --add channels conda-forge - cmd: conda config --add channels conda-forge
- cmd: conda install -c conda-forge pvl protobuf gdal numpy pandas sqlalchemy pyyaml networkx affine h5py scipy pyproj - cmd: conda create -q -n test python=%PYTHON_VERSION%
- cmd: conda install -c conda-forge pytest pytest-cov - cmd: conda env update -n test -f environment.yml
# https://pythonhosted.org/CodeChat/appveyor.yml.html - cmd: activate test
- cmd: python -m pip install -U pip
- cmd: python -m easy_install -U setuptools
build_script: build_script:
- cmd: python setup.py install - cmd: python setup.py install
...@@ -53,7 +33,8 @@ build_script: ...@@ -53,7 +33,8 @@ build_script:
test_script: test_script:
- cmd: pytest plio/ - cmd: pytest plio/
on_success: #on_success:
- cmd: deactivate #- cmd: conda deactivate
- cmd: conda config --set anaconda_upload yes #- cmd: conda install conda-build anaconda-client
- cmd: conda build --token %CONDA_UPLOAD_TOKEN% . #- cmd: conda config --set anaconda_upload yes
# - cmd: conda build --token %CONDA_UPLOAD_TOKEN% .
...@@ -17,9 +17,7 @@ dependencies: ...@@ -17,9 +17,7 @@ dependencies:
- pandas - pandas
- sqlalchemy - sqlalchemy
- pyyaml - pyyaml
- ncurses
- pytest - pytest
- pytest-cov - pytest-cov
- sh
- coveralls - coveralls
- nbsphinx - nbsphinx
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment