Skip to content

Commit 0c659a3

Browse files
author
Amin
committed
update appveyor
1 parent ada8225 commit 0c659a3

1 file changed

Lines changed: 17 additions & 21 deletions

File tree

.appveyor.yml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
build: false
2-
3-
platform:
4-
- x64
5-
6-
clone_folder: c:\projects\project-code
7-
8-
cache:
9-
- c:\ProgramData\chocolatey\bin -> .appveyor.yml
10-
- c:\ProgramData\chocolatey\lib -> .appveyor.yml
1+
clone_folder: c:\projects\python-ffmpeg-video-streaming
112

123
environment:
134
global:
14-
COMPOSER_NO_INTERACTION: 1
15-
ANSICON: 121x90 (121x90) # Console colors
5+
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
6+
JANSSON_VERSION: "2.13"
167

178
ffmpeg_download: https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-5.0-essentials_build.zip
189

@@ -53,21 +44,26 @@ environment:
5344
OPENSSL_LIB: "https://ci.appveyor.com/api/buildjobs/q63539qt9yqaqspo/artifacts/YARA.OpenSSL.x64.1.1.1.nupkg"
5445
VS: "Visual Studio 14 2015 Win64"
5546

56-
init:
57-
- ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%
58-
5947
install:
60-
- set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
61-
- python --version
48+
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
49+
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
50+
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
51+
throw "There are newer queued builds for this pull request, failing early." }
52+
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
53+
- ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
54+
- "echo %APPVEYOR_BUILD_WORKER_IMAGE%"
55+
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
56+
- "python --version"
6257
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
63-
- python -m pip install -U pip
64-
- python -m easy_install -U setuptools
65-
- pip install -r requirements.txt
58+
- "python -m pip install --disable-pip-version-check --user --upgrade pip"
59+
- "%CMD_IN_ENV% pip install wheel"
60+
- "python -m easy_install -U setuptools"
61+
- "pip install -r requirements.txt"
6662
- ps: Start-FileDownload $env:ffmpeg_download
6763

6864
- 7z x ffmpeg-5.0-essentials_build.zip
6965
- PATH=%PATH%;%cd%\ffmpeg-5.0-essentials_build\bin
7066

7167
test_script:
72-
- cd c:\projects\project-code
68+
- cd c:\projects\python-ffmpeg-video-streaming
7369
- python -m unittest

0 commit comments

Comments
 (0)