forked from Rhizome-Conifer/conifer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
49 lines (42 loc) · 1.69 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
environment:
global:
CMD_IN_ENV: "cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd"
matrix:
- PYTHON: "C:\\Python35"
PYTHON_VERSION: "3.5.x"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.x"
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." }
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "pip install --disable-pip-version-check --user --upgrade pip"
- "pip install -U setuptools"
# - "pip install coverage pytest-cov coveralls"
- "pip install pyinstaller"
- "pip install cffi"
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/ -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"
artifacts:
- path: webrecorder-player*.exe
name: webrecorder-player
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-player