-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
119 lines (103 loc) · 3.76 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: '{branch}-{build}'
build: off
cache:
- '%LOCALAPPDATA%\pip\Cache'
- node_modules
environment:
COVERALLS_REPO_TOKEN:
secure: EJUHS/ajkZiRV3cLoINHVvgZTW8EhLHzVzvA7vXaQEpr/Mn3BArtglPXvSuoX24z
global:
MUSIC_LIB_ROOT: '.\music-lib'
WITH_COMPILER: 'cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd'
ffmpeg_download: https://ffmpeg.zeranoe.com/builds/
nodejs_version: Current
ffmpeg_version: latest
matrix:
#
# - TOXENV: clean
# TOXPYTHON: C:\Python35\python.exe
# PYTHON_HOME: C:\Python35
# PYTHON_VERSION: '3.5'
# PYTHON_ARCH: '32'
# platform: x86
# ffmpeg_platform: win32
- TOXENV: 'clean,py35-cover,coveralls'
TOXPYTHON: C:\Python35\python.exe
PYTHON_HOME: C:\Python35
PYTHON_VERSION: '3.5'
PYTHON_ARCH: '32'
platform: x86
ffmpeg_platform: win32
- TOXENV: 'py35-nocov'
TOXPYTHON: C:\Python35-x64\python.exe
PYTHON_HOME: C:\Python35-x64
PYTHON_VERSION: '3.5'
PYTHON_ARCH: '64'
platform: x64
ffmpeg_platform: win64
- TOXENV: 'clean,py36-cover,coveralls'
TOXPYTHON: C:\Python36\python.exe
PYTHON_HOME: C:\Python36
PYTHON_VERSION: '3.6'
PYTHON_ARCH: '32'
platform: x86
ffmpeg_platform: win32
- TOXENV: 'py36-nocov'
TOXPYTHON: C:\Python36-x64\python.exe
PYTHON_HOME: C:\Python36-x64
PYTHON_VERSION: '3.6'
PYTHON_ARCH: '64'
platform: x64
ffmpeg_platform: win64
- TOXENV: 'clean,py37-cover,coveralls'
TOXPYTHON: C:\Python37\python.exe
PYTHON_HOME: C:\Python37
PYTHON_VERSION: '3.7'
PYTHON_ARCH: '32'
platform: x86
ffmpeg_platform: win32
- TOXENV: 'py37-nocov'
TOXPYTHON: C:\Python37-x64\python.exe
PYTHON_HOME: C:\Python37-x64
PYTHON_VERSION: '3.7'
PYTHON_ARCH: '64'
platform: x64
ffmpeg_platform: win64
init:
- ps: echo $env:TOXENV
- ps: ls C:\Python*
install:
- python -u ci\appveyor-bootstrap.py
- ps: Install-Product node $env:nodejs_version $env:platform
- npm install
- ps: Start-FileDownload $env:ffmpeg_download$env:ffmpeg_platform/static/ffmpeg-$env:ffmpeg_version-$env:ffmpeg_platform-static.zip
- 7z x ffmpeg-%ffmpeg_version%-%ffmpeg_platform%-static.zip
- PATH=%PATH%;%cd%\ffmpeg-%ffmpeg_version%-%ffmpeg_platform%-static\bin
# - ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
# - ps: Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_REPO_BRANCH-$env:APPVEYOR_BUILD_NUMBER"
- '%PYTHON_HOME%\Scripts\virtualenv --version'
- '%PYTHON_HOME%\Scripts\easy_install --version'
- '%PYTHON_HOME%\Scripts\pip --version'
- '%PYTHON_HOME%\Scripts\tox --version'
- '%PYTHON_HOME%\python --version'
# Read the encrypted file with eg a COVERALLS_REPO_TOKEN value
# - ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'))
# - cmd: appveyor-tools\secure-file -decrypt .appveyor-coveralls-repo-token.enc -secret %COVERALLS_REPO_TOKEN%
# - sh: ./appveyor-tools/secure-file -decrypt .appveyor-coveralls-repo-token.enc -secret $COVERALLS_REPO_TOKEN
test_script:
- ffmpeg -version
- node --version
- npm --version
- '%PYTHON_HOME%\Scripts\tox --version'
- '%WITH_COMPILER% %PYTHON_HOME%\Scripts\tox -v'
after_test:
- '%PYTHON_HOME%\python setup.py bdist_wheel'
- ps: "ls dist"
on_failure:
- ps: dir "env:"
- ps: get-content .tox\*\log\*
artifacts:
- path: dist\*
### To enable remote debugging uncomment this (also, see: http://www.appveyor.com/docs/how-to/rdp-to-build-worker):
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))