3
3
4
4
platform :
5
5
- x86
6
- # - x64
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
+ DEPENDENCY_NAME : ffmpeg
11
+ DEPENDENCY_VERSION : 2.4.5
12
+ DEPENDENCY_INSTALL_PATH : C:\ProgramData\install-dependency
13
+ AVTRANSCODER_INSTALL_PATH : C:\projects\avtranscoder\build\install-avtranscoder
12
14
13
- matrix :
14
- fast_finish : true
15
+ matrix :
16
+ - fast_finish : true
15
17
16
18
init :
17
19
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %platform%
18
20
19
- before_build :
21
+ install :
22
+ # Install build dependencies
20
23
- choco install -y swig
21
24
- tools/appveyor/win.install.deps.bat
22
25
23
- build_script :
24
- - tools/appveyor/build.bat
26
+ # Get the correct python version
27
+ - ps : if($env:platform -eq 'x86') {
28
+ $env:PYTHON = "C:\Python27";
29
+ }
30
+ else {
31
+ $env:PYTHON = "C:\Python27-x64";
32
+ }
33
+ # Prepend newly installed Python to the PATH of this build
34
+ - cmd : set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
35
+ - cmd : echo %PATH%
36
+ # Check that we have the expected version and architecture for Python
37
+ - " python --version"
38
+ - " python -c \" import struct; print(struct.calcsize('P') * 8)\" "
39
+ # Upgrade to the latest version of pip to avoid it displaying warnings about it being out of date.
40
+ - pip install --disable-pip-version-check --user --upgrade pip
25
41
26
- before_test :
27
- - set PATH=C:\Python27\scripts;%PATH%
42
+ # Install tests dependencies
28
43
- pip install nose
29
44
45
+ build_script :
46
+ - tools/appveyor/build.bat
47
+
30
48
test_script :
31
49
- cd ..
32
50
- tools/appveyor/python.nosetests.bat
@@ -36,23 +54,17 @@ on_failure:
36
54
- type "C:\projects\avtranscoder\build\CMakeFiles\CMakeOutput.log"
37
55
38
56
on_success :
39
- - 7z a ffmpeg.zip %DEPENDENCY_INSTALL_PATH%
40
- - 7z a avtranscoder.zip %AVTRANSCODER_INSTALL_PATH%
57
+ - 7z a avtranscoder-win%PLATFORM%-%DEPENDENCY_NAME%-%DEPENDENCY_VERSION%.zip %DEPENDENCY_INSTALL_PATH% %AVTRANSCODER_INSTALL_PATH%
41
58
42
59
artifacts :
43
- - path : ffmpeg.zip
44
- name : ffmpeg
45
- type : zip
46
-
47
- - path : avtranscoder.zip
60
+ - path : avtranscoder-win%PLATFORM%-%DEPENDENCY_NAME%-%DEPENDENCY_VERSION%.zip
48
61
name : avtranscoder
49
62
type : zip
50
63
51
64
deploy :
52
65
- provider : GitHub
53
- artifact : ffmpeg, avtranscoder
66
+ artifact : avtranscoder
54
67
auth_token :
55
68
secure : sApasbQe2i7Uu+XNhlkXg+F6zI0VNHUjhq5QfK6/+NSs4lX/9BwhkLvibQc6bmMv
56
69
on :
57
- branch : master
58
70
appveyor_repo_tag : true
0 commit comments