forked from conda/conda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
52 lines (44 loc) · 2.06 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
image: Visual Studio 2017
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\tools\\appveyor\\run_with_env.cmd"
COVERALLS_REPO_TOKEN:
secure: ZaE7K9EHorv40AjYhSuWtQeRAsMN1+QqPf7u8rOlvEY50kdaHj87Mh5GIDZgJBzj
matrix:
- PYTHON: "C:\\Python36_64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
PYTHON_ROOT: "C:\\Miniconda36-x64"
CONDA_INSTRUMENTATION_ENABLED: "true"
- PYTHON: "C:\\Python27_32"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "32"
PYTHON_ROOT: "C:\\Miniconda"
CONDA_INSTRUMENTATION_ENABLED: "true"
PYTHONIOENCODING: "UTF-8"
init:
- ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH% %HOME%
# - 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'))
install:
- CALL "%PYTHON_ROOT%\\Scripts\\activate.bat"
- 'conda install -y python=%PYTHON_VERSION% pycosat conda requests ruamel_yaml pytest pytest-cov pytest-timeout mock responses urllib3 pexpect pywin32 anaconda-client conda-package-handling'
- "conda install -yq conda-build=3.17"
# conda install -y -c defaults -c conda-forge pytest pytest-cov pytest-timeout mock responses pexpect xonsh
# TODO: add xonsh for PY3 builds
- "pip install codecov==2.0.5"
- "python -m conda init cmd.exe --dev"
build: false
test_script:
- CALL dev-init.bat
- conda-build tests\test-recipes\activate_deactivate_package
- py.test %ADD_COV% -m "not integration and not installed" -v --basetemp=C:\tmp
- py.test %ADD_COV% --cov-append -m "integration and not installed" -v --basetemp=C:\tmp
- DEL /Q /F conda.egg-info
- conda build conda.recipe
- codecov --env PYTHON_VERSION --required
- python -m conda.common.io