Skip to content

Commit

Permalink
modify appveyor template, pmg rg
Browse files Browse the repository at this point in the history
  • Loading branch information
jchopard committed Mar 14, 2019
1 parent bc6d340 commit bfedf70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .pkglts/pkg_hash.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"doc": "o5MA/WIyttlY9ptvCAXvODKSSa3qZVhtAJigoXclKAnK0gViu3WN4c7DuCqhOJwZoqjXqbFVVj+098DvxX9F0w=="
},
"appveyor.yml": {
"appveyor": "gMJuEmNLwhwLK+fSMvZ9liCte9/PcxVkx7NJQnBZTCDjfduaaczExmUOUf3j1ZEdkrYG+hJC5Chz3LIqL8LUfA=="
"appveyor": "5/T0A4182n2Zha7QLgdW4PRGtORCAuPwTw7Fb/sm/DgSRrWuco2aqUpuCV9j9wlmGZ5CM/dnT1zw+Lxn1Iv7Lg=="
},
"appveyor_scripts.ps1": {
"appveyor": "HdiTMjGtis8VNyHfwqGBOjaDQZajmxcqAtNYMzKycmWHGjUpEEXIwvb1/ZCqiY9tDAh39PX+sf7tG4zTJ+0MXw=="
Expand Down
26 changes: 8 additions & 18 deletions src/pkglts/option/appveyor/resource/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,29 @@ environment:
CMD_IN_ENV: "cmd /E:ON /V:ON /C"

matrix:
- PYTHON: "C:\\Python36_64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
CONDA_PY: "36"
CONDA_NPY: "113"
- CONDA: "C:\\Miniconda3-x64\\Scripts"

install:
# this installs Miniconda
- curl https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe -o miniconda.exe
- miniconda.exe /AddToPath=1 /InstallationType=JustMe /RegisterPython=0 /S /D=%HOMEDRIVE%\Miniconda
- del miniconda.exe
- "set PATH=%HOMEDRIVE%\\Miniconda;%HOMEDRIVE%\\Miniconda\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- "%CONDA%\\conda config --set always_yes yes --set changeps1 no"
# useful for debugging any issues with conda
- conda info -a
- "%CONDA%\\conda info -a"
# create environment
- conda create -n ci python
- activate ci
- "%CONDA%\\conda create -n ci python"
- "%CONDA%\\activate ci"

build: false

build_script:
# install dependencies
{% if pysetup.conda_reqs(['install', 'test', 'doc', 'dvlpt']) != "" -%}
- {{ pysetup.conda_reqs(['install', 'test', 'doc', 'dvlpt']) }}
- "%CONDA%\\{{ pysetup.conda_reqs(['install', 'test', 'doc', 'dvlpt']) }}"
{%- endif %}
{% if pysetup.pip_reqs(['install', 'test', 'doc', 'dvlpt']) != "" -%}
- {{ pysetup.pip_reqs(['install', 'test', 'doc', 'dvlpt']) }}
{%- endif %}

# install package
- python setup.py install
- pip install .
# test
- pytest
- pytest --cov={{ base.pkg_full_name }}
# #}

0 comments on commit bfedf70

Please sign in to comment.