加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.appveyor.yml 2.49 KB
一键复制 编辑 原始数据 按行查看 历史
environment:
matrix:
- PYTHON: "C:\\Python36"
PYTHON_VERSION: "3.6.4"
PYTHON_ARCH: "32"
platform: x86
configuration: Release
init:
- cmd: ver
- cmd: ECHO Processor architecture - %PROCESSOR_ARCHITECTURE%
- cmd: wmic OS get OSArchitecture
# As AppVeyor has multiple python install, check which one uses by default
- cmd: ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%
- cmd: python --version
- cmd: python -c "import struct; print(struct.calcsize('P') * 8)"
- cmd: python -c "import sys; print(sys.executable)"
# Set the relevant Python and pip location to the path
- cmd: set PATH=%PYTHON%;%PYTHON%\scripts;%PATH%
- cmd: ECHO Path - %PATH%
# Verify the new default python
- cmd: python --version
- cmd: python -c "import struct; print(struct.calcsize('P') * 8)"
- cmd: python -c "import sys; print(sys.executable)"
- cmd: pip --version
# Check out installed python packages
- cmd: pip freeze
install:
# Install Mu Python dependencies
- cmd: pip install .[dev]
# Check installed packages
- cmd: pip freeze
- cmd: python -c "import PyQt5"
- cmd: python -c "import PyQt5.Qsci"
- cmd: python -c "import PyQt5.QtChart"
# Build mu using pynsist, rename dist folder and executable with timestamp
# 64bit
- cmd: make win64
- cmd: dir .\dist\
- ps: Rename-Item .\dist\mu-editor_64bit.exe mu_$(get-date -f yyyy-MM-dd_HH_mm)_$($env:APPVEYOR_REPO_BRANCH)_$($env:APPVEYOR_REPO_COMMIT.subString(0,7))_64bit.exe
- cmd: ren dist dist-keep
# 32bit
- cmd: make win32
- cmd: dir .\dist\
- ps: Rename-Item .\dist\mu-editor_32bit.exe mu_$(get-date -f yyyy-MM-dd_HH_mm)_$($env:APPVEYOR_REPO_BRANCH)_$($env:APPVEYOR_REPO_COMMIT.subString(0,7))_32bit.exe
- cmd: move .\dist\*.exe .\dist-keep\
# Confirm we have both installer executables
- cmd: dir .\dist-keep\
# Not a project with an msbuild file, build done at install.
build: None
test_script:
- cmd: make check
# Push artifacts to s3 bucket and list all
before_deploy:
- ps: Get-ChildItem .\dist-keep\*.exe | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName mu-s3-deployment }
- ps: foreach($artifactName in $artifacts.keys) { $artifacts[$artifactName] }
# Deploy build to Amazon S3 bucket
deploy:
name: mu-s3-deployment
provider: S3
access_key_id: AKIAJYJV7NN6HVHCX5NQ
secret_access_key:
secure: PlLCQKTcf9IzBXpEnXUxbJifb0usS7qcghnM0VxBTX0IL3C975JPidrYjP39ge7P
bucket: mu-builds
region: eu-west-2
set_public: true
folder: windows
on:
branch: [master]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化