1 Star 1 Fork 0

liwooood/ardublockly

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.appveyor.yml 3.20 KB
一键复制 编辑 原始数据 按行查看 历史
environment:
nodejs_version: "Stable"
matrix:
# First group is 32 bit python 2.7
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.9"
PYTHON_ARCH: "32"
PYTHON3: "C:\\Python34"
PYTHON3_VERSION: "3.4.3"
PYTHON3_ARCH: "32"
# Add custom environmental variables for pip
PIP: C:\\Python27\Scripts\pip
PIP3: C:\\Python34\Scripts\pip
# Add custom environmental variables to ensure 32 bit electron
npm_config_arch: ia32
platform: x86
configuration: Release
init:
- cmd: ECHO Processor architecture - %PROCESSOR_ARCHITECTURE%
- cmd: wmic OS get OSArchitecture
# As AppVeyor has multiple python install, verify which ones will be used
- cmd: ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%
- cmd: "%PYTHON%\\python --version"
- cmd: "%PYTHON%\\python -c \"import struct; print(struct.calcsize('P') * 8)\""
- cmd: ECHO %PYTHON3% %PYTHON3_VERSION% %PYTHON3_ARCH%
- cmd: "%PYTHON3%\\python --version"
- cmd: "%PYTHON3%\\python -c \"import struct; print(struct.calcsize('P') * 8)\""
# Prepare pip and pip3, PATH iterated left to right first hit wins
- cmd: set PATH=%PYTHON%\scripts;%PYTHON3%\scripts;%PATH%
- cmd: ECHO Path - %PATH%
- cmd: "%PIP% --version"
- cmd: "%PIP3% --version"
# Ensure node x86 (appveyor powershell script to switch installed versions)
- ps: Install-Product node 'Stable' x86
- cmd: node --version
- cmd: node -p "process.arch"
- cmd: npm --version
install:
# Git clone happens between init and install
- cmd: git submodule update --init --recursive
# Install Python packages
- cmd: "%PIP3% install https://dl.dropboxusercontent.com/u/74034/ardublockly-dep/win/py2exe-0.9.2.2-cp34-none-win32.whl"
- cmd: "%PIP3% install mkdocs"
- cmd: "%PIP% install mock"
- cmd: "%PIP% freeze"
- cmd: "%PIP3% freeze"
# Build and pack Ardublockly
- cmd: cd blockly && %PYTHON%\python build.py && cd ..\
- cmd: "%PYTHON3%\\python package\\build_docs.py"
- cmd: "%PYTHON3%\\python package\\build_py2exe.py"
- cmd: cd package\electron && npm install && cd ..\..\
- cmd: cd package\electron && npm run release && cd ..\..\
- cmd: "%PYTHON3%\\python package\\pack_ardublockly.py"
- cmd: dir
# Not a project with an msbuild file, build done at install.
build: off
# CI testing on both Python 2 and 3
test_script:
- cmd: chcp 65001
- cmd: set PYTHONIOENCODING=utf-8
- cmd: "%PYTHON%\\python ardublocklyserver\\tests\\sketchcreator_test.py"
- cmd: "%PYTHON3%\\python ardublocklyserver\\tests\\sketchcreator_test.py"
- cmd: "%PYTHON%\\python ardublocklyserver\\tests\\compilersettings_test.py"
- cmd: "%PYTHON3%\\python ardublocklyserver\\tests\\compilersettings_test.py"
# Push artefact to S3 bucket and list all
before_deploy:
- ps: Get-ChildItem .\releases\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName ardublockly-s3-deployment }
- ps: foreach($artifactName in $artifacts.keys) { $artifacts[$artifactName] }
# Deploy build to Amazon S3 bucket
deploy:
name: ardublockly-s3-deployment
provider: S3
access_key_id: AKIAJYJV7NN6HVHCX5NQ
secret_access_key:
secure: PlLCQKTcf9IzBXpEnXUxbJifb0usS7qcghnM0VxBTX0IL3C975JPidrYjP39ge7P
bucket: ardublockly-builds
set_public: true
folder: windows
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/liwooood/ardublockly.git
git@gitee.com:liwooood/ardublockly.git
liwooood
ardublockly
ardublockly
master

搜索帮助