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