-
Notifications
You must be signed in to change notification settings - Fork 120
/
appveyor.yml
60 lines (49 loc) · 2.02 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
environment:
global:
CMD_IN_ENV: "cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd"
matrix:
- PYTHON: "C:\\Python36"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python36-x64"
PYTHON_ARCH: "64"
install:
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
- "git submodule update --init --recursive"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "python -m pip install --upgrade pip"
- "pip install -U setuptools"
- "pip install pyinstaller==3.3"
- "pip install urllib3==1.23"
- "pip install cffi"
- "pip install pyopenssl"
- "pip install pyyaml"
- "pip install coverage pytest-cov codecov"
- "pip install certauth boto youtube-dl"
- "pip install wheel"
build_script:
- ps: "cd webrecorder"
- "python setup.py install"
test_script:
- "python setup.py test"
after_test:
- ps: "cd webrecorder/standalone"
- pyinstaller --clean --additional-hooks-dir ./hooks/ -w -y -F ./webrecorder_player.py
- "move .\\dist\\webrecorder_player.exe %APPVEYOR_BUILD_FOLDER%\\webrecorder-player-win-x%PYTHON_ARCH%.exe"
- "%APPVEYOR_BUILD_FOLDER%\\webrecorder-player-win-x%PYTHON_ARCH%.exe -v"
- pyinstaller --clean --additional-hooks-dir ./hooks/ -w -y -F ./webrecorder_full.py
- "move .\\dist\\webrecorder_full.exe %APPVEYOR_BUILD_FOLDER%\\webrecorder-win-x%PYTHON_ARCH%.exe"
- "%APPVEYOR_BUILD_FOLDER%\\webrecorder-win-x%PYTHON_ARCH%.exe -v"
artifacts:
- path: webrecorder-*.exe
name: webrecorder
deploy:
provider: S3
region: $(aws_s3_region)
bucket: $(aws_s3_bucket)
access_key_id: $(aws_access_key_id)
secret_access_key: $(aws_secret_access_key)
folder: "webrecorder-player/$(APPVEYOR_REPO_BRANCH)"
artifact: webrecorder