File tree Expand file tree Collapse file tree 1 file changed +27
-10
lines changed Expand file tree Collapse file tree 1 file changed +27
-10
lines changed Original file line number Diff line number Diff line change @@ -6,27 +6,44 @@ platform:
6
6
- x64
7
7
8
8
environment :
9
- FFMPEG_VERSION : 2.4.5
10
- DEPENDENCY_INSTALL_PATH : C:\ProgramData\ffmpeg-2.4.5
11
- AVTRANSCODER_INSTALL_PATH : C:\projects\avtranscoder\build\install
9
+ global :
10
+ FFMPEG_VERSION : 2.4.5
11
+ DEPENDENCY_INSTALL_PATH : C:\ProgramData\ffmpeg-2.4.5
12
+ AVTRANSCODER_INSTALL_PATH : C:\projects\avtranscoder\build\install
12
13
13
- matrix :
14
- fast_finish : true
14
+ matrix :
15
+ - fast_finish : true
15
16
16
17
init :
17
18
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %platform%
18
19
19
- before_build :
20
+ install :
21
+ # Install build dependencies
20
22
- choco install -y swig
21
23
- tools/appveyor/win.install.deps.bat
22
24
23
- build_script :
24
- - tools/appveyor/build.bat
25
+ # Get the correct python version
26
+ - ps : if($env:platform -eq 'x86') {
27
+ $env:PYTHON = "C:\Python27";
28
+ }
29
+ else {
30
+ $env:PYTHON = "C:\Python27-x64";
31
+ }
32
+ # Prepend newly installed Python to the PATH of this build
33
+ - cmd : set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
34
+ - cmd : echo %PATH%
35
+ # Check that we have the expected version and architecture for Python
36
+ - " python --version"
37
+ - " python -c \" import struct; print(struct.calcsize('P') * 8)\" "
38
+ # Upgrade to the latest version of pip to avoid it displaying warnings about it being out of date.
39
+ - pip install --disable-pip-version-check --user --upgrade pip
25
40
26
- before_test :
27
- - set PATH=C:\Python27\scripts;%PATH%
41
+ # Install tests dependencies
28
42
- pip install nose
29
43
44
+ build_script :
45
+ - tools/appveyor/build.bat
46
+
30
47
test_script :
31
48
- cd ..
32
49
- tools/appveyor/python.nosetests.bat
You can’t perform that action at this time.
0 commit comments