forked from avTranscoder/avTranscoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
69 lines (56 loc) · 1.89 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
os:
- Windows Server 2012 R2
platform:
- x86
- x64
environment:
global:
DEPENDENCY_NAME: ffmpeg
DEPENDENCY_VERSION: 4.2.1
DEPENDENCY_INSTALL_PATH: C:\ProgramData\install-dependency
AVTRANSCODER_INSTALL_PATH: C:\projects\avtranscoder\build\install-avtranscoder
matrix:
- fast_finish: true
init:
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %platform%
install:
# Install build dependencies
- choco install -y swig
- tools/appveyor/win.install.deps.bat
# Get the correct python version
- ps: if($env:platform -eq 'x86') {
$env:PYTHON = "C:\Python35";
}
else {
$env:PYTHON = "C:\Python35-x64";
}
# Prepend newly installed Python to the PATH of this build
- cmd: set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- cmd: echo %PATH%
# Check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
# Upgrade to the latest version of pip to avoid it displaying warnings about it being out of date.
- "python -m pip install --disable-pip-version-check --user --upgrade pip"
# Install tests dependencies
- pip install nose
build_script:
- tools/appveyor/build.bat
test_script:
- tools/appveyor/python.nosetests.bat
on_failure:
- type "C:\ProgramData\chocolatey\logs\chocolatey.log"
- type "C:\projects\avtranscoder\build\CMakeFiles\CMakeOutput.log"
after_test:
- 7z a avtranscoder-win%PLATFORM%-%DEPENDENCY_NAME%-%DEPENDENCY_VERSION%.zip %DEPENDENCY_INSTALL_PATH% %AVTRANSCODER_INSTALL_PATH%
- ps: Push-AppveyorArtifact avtranscoder-win*.zip
artifacts:
- path: avtranscoder-win*.zip
name: avtranscoder
deploy:
- provider: GitHub
artifact: avtranscoder
auth_token:
secure: sApasbQe2i7Uu+XNhlkXg+F6zI0VNHUjhq5QfK6/+NSs4lX/9BwhkLvibQc6bmMv
on:
appveyor_repo_tag: true