1
+ version : ' {branch}-{build}'
2
+ cache :
3
+ - ' %LOCALAPPDATA%\pip\Cache'
1
4
environment :
2
- global :
3
- # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
4
- # /E:ON and /V:ON options are not enabled in the batch script intepreter
5
- # See: http://stackoverflow.com/a/13751649/163740
6
- CMD_IN_ENV : " cmd /E:ON /V:ON /C .\\ appveyor\\ run_with_env.cmd"
7
-
8
- matrix :
9
-
10
- # Pre-installed Python versions, which Appveyor may upgrade to
11
- # a later point release.
12
- # See: http://www.appveyor.com/docs/installed-software#python
13
-
14
- - PYTHON : " C:\\ Python27"
15
- PYTHON_VERSION : " 2.7.x" # currently 2.7.9
16
- PYTHON_ARCH : " 32"
17
-
18
- - PYTHON : " C:\\ Python27-x64"
19
- PYTHON_VERSION : " 2.7.x" # currently 2.7.9
20
- PYTHON_ARCH : " 64"
21
-
22
- - PYTHON : " C:\\ Python33"
23
- PYTHON_VERSION : " 3.3.x" # currently 3.3.5
24
- PYTHON_ARCH : " 32"
25
-
26
- - PYTHON : " C:\\ Python33-x64"
27
- PYTHON_VERSION : " 3.3.x" # currently 3.3.5
28
- PYTHON_ARCH : " 64"
29
-
30
- - PYTHON : " C:\\ Python34"
31
- PYTHON_VERSION : " 3.4.x" # currently 3.4.3
32
- PYTHON_ARCH : " 32"
33
-
34
- - PYTHON : " C:\\ Python34-x64"
35
- PYTHON_VERSION : " 3.4.x" # currently 3.4.3
36
- PYTHON_ARCH : " 64"
37
-
38
- # Python versions not pre-installed
39
-
40
- # Python 2.6.6 is the latest Python 2.6 with a Windows installer
41
- # See: https://github.com/ogrisel/python-appveyor-demo/issues/10
42
-
43
- - PYTHON : " C:\\ Python266"
44
- PYTHON_VERSION : " 2.6.6"
45
- PYTHON_ARCH : " 32"
46
-
47
- - PYTHON : " C:\\ Python266-x64"
48
- PYTHON_VERSION : " 2.6.6"
49
- PYTHON_ARCH : " 64"
50
-
51
- - PYTHON : " C:\\ Python35"
52
- PYTHON_VERSION : " 3.5.0"
53
- PYTHON_ARCH : " 32"
54
-
55
- - PYTHON : " C:\\ Python35-x64"
56
- PYTHON_VERSION : " 3.5.0"
57
- PYTHON_ARCH : " 64"
58
-
5
+ password :
6
+ secure : pp1j5lAB9NN8ZDasgY+oxoGrNw0+4gGzbNZmHVwJkCzUyrNBP5ZIuCrwjmx4q6ifg7RMiE3bVt9MljFCJh3XpsvVOAcx+AGKsHSjtXd40HM=
59
7
init :
60
- - " ECHO Python %PYTHON_VERSION% (%PYTHON_ARCH%bit) from %PYTHON% "
8
+ - ps : " ls C:/ Python* "
61
9
62
10
install :
63
- # Install Python (from the official .msi of http://python.org) and pip when
64
- # not already installed.
65
- - ps : if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
66
- - " %PYTHON% \\ Scripts \\ pip install --disable-pip-version-check --user --upgrade pip wheel cython "
11
+ - choco install python.pypy > pypy-inst.log 2>&1 || (type pypy-inst.log & exit /b 1)
12
+ - SET PATH=C:\Python35;C:\Python35\scripts;C:\tools\pypy\pypy;%PATH%
13
+ - echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat"
14
+ - pip install -r dev-requirements.txt
67
15
68
- build_script :
69
- - " %PYTHON%\\ python setup.py install"
16
+ build : off
70
17
71
18
test_script :
72
- - " %PYTHON%\\ python setup.py test"
73
-
74
- after_test :
75
- - " %PYTHON%\\ python setup.py bdist_wheel bdist_wininst bdist_msi"
76
- - ps : " ls dist"
77
-
78
- artifacts :
79
- - path : dist\*
80
-
81
- # on_success:
82
- # - TODO: upload the content of dist/*.whl to a public wheelhouse
83
- #
19
+ - tox
20
+
21
+ on_success :
22
+ - pip install codecov
23
+ - codecov
24
+ - tox -c tox-wheels.ini
25
+
26
+ deploy_script :
27
+ - echo [distutils] > %USERPROFILE%\\.pypirc
28
+ - echo index-servers = >> %USERPROFILE%\\.pypirc
29
+ - echo pypi >> %USERPROFILE%\\.pypirc
30
+ - echo [pypi] >> %USERPROFILE%\\.pypirc
31
+ - echo username=whtsky >> %USERPROFILE%\\.pypirc
32
+ - echo password=%password% >> %USERPROFILE%\\.pypirc
33
+ - set HOME=%USERPROFILE%
34
+ - pip install twine
35
+ - ps : if($env:APPVEYOR_REPO_TAG -eq $TRUE) { "twine upload wheelhouse/bencoder*.whl" }
36
+
37
+ deploy : on
0 commit comments