CMD构建Ardublockly

18 篇文章 0 订阅
13 篇文章 0 订阅


D:\other\myardublockly\ardublockly>set PYTHON="c:\python27"

D:\other\myardublockly\ardublockly>set PYTHON_VERSION="2.7.9"

D:\other\myardublockly\ardublockly>SET PYTHON_ARCH="33"

D:\other\myardublockly\ardublockly>SET PYTHON3="C:\Python34"

D:\other\myardublockly\ardublockly>SET PYTHON3_VERSION="3.4.3"

D:\other\myardublockly\ardublockly>SET PYTHON3_ARCH="32"

D:\other\myardublockly\ardublockly>SET PIP="C:\Python27\Scripts\pip"


D:\other\myardublockly\ardublockly>SET PIP3="C:\Python34\Scripts\pip"

D:\other\myardublockly\ardublockly>Echo Processor architecture - %PROCESSOR_ARC
ITECTURE%
Processor architecture - x86

D:\other\myardublockly\ardublockly>wmic OS get OSArchitecture
OSArchitecture
64-bit

D:\other\myardublockly\ardublockly>ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%
"c:\python27" "2.7.9" "33"

D:\other\myardublockly\ardublockly>%PYTHON%\Python --version
Python 2.7.13


D:\other\myardublockly\ardublockly>%PYTHON%\Python -c "import struct; print(stru
ct.calcsize('p')*8)"
8

D:\other\myardublockly\ardublockly>%PYTHON3%\Python --version
Python 3.5.2

D:\other\myardublockly\ardublockly>%PYTHON3%\Python -c "import struct; print(str
uct.calcsize('p')*8)"
8

D:\other\myardublockly\ardublockly>SET PATH=%PYTHON%\scripts;%PYTHON3%\scripts;%
PATH%

D:\other\myardublockly\ardublockly>ECHO Path - %PATH%
Path - "c:\python27"\scripts;"C:\Python34"\scripts;C:\Program Files\Java\jdk1.8.
0_111/bin;C:\Program Files\Java\jdk1.8.0_111/jre/bin;C:\ProgramData\Oracle\Java\
javapath;C:\Perl64\site\bin;C:\Perl64\bin;C:\windows\system32;C:\windows;C:\wind
ows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\T
ortoiseSVN\bin;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\win
dows\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\
;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsof
t SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Per
formance Toolkit\;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;D:\o
ther\gradle-3.1/bin;D:\other\mysql-5.6.24-win32\bin;D:\other\apache-maven-3.3.9/
bin;C:\Program Files\nodejs\;C:\Python34;C:\Python34\Scripts;C:\Program Files\CM
ake\bin;C:\Users\Administrator\AppData\Roaming\npm

D:\other\myardublockly\ardublockly>%PIP% --version
pip 9.0.1 from c:\python27\lib\site-packages (python 2.7)

D:\other\myardublockly\ardublockly>%PIP3% --version
pip 8.1.1 from c:\python34\lib\site-packages (python 3.5)


D:\other\myardublockly\ardublockly>node --version
v6.2.0

D:\other\myardublockly\ardublockly>node -p "process.arch"
x64

D:\other\myardublockly\ardublockly>cnpm --version
4.4.2


接下来就可以开始构建了


D:\other\myardublockly\ardublockly>git submodule update --init --recursive

D:\other\myardublockly\ardublockly>%PIP3% install py2exe
Requirement already satisfied (use --upgrade to upgrade): py2exe in c:\python34\
lib\site-packages


D:\other\myardublockly\ardublockly>%PIP3% install mkdocs
Requirement already satisfied (use --upgrade to upgrade): mkdocs in c:\python34\
lib\site-packages
Requirement already satisfied (use --upgrade to upgrade): PyYAML>=3.10 in c:\pyt
hon34\lib\site-packages (from mkdocs)
Requirement already satisfied (use --upgrade to upgrade): Markdown>=2.3.1 in c:\
python34\lib\site-packages (from mkdocs)
Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.7.1 in c:\py
thon34\lib\site-packages (from mkdocs)
Requirement already satisfied (use --upgrade to upgrade): tornado>=4.1 in c:\pyt
hon34\lib\site-packages (from mkdocs)
Requirement already satisfied (use --upgrade to upgrade): click>=3.3 in c:\pytho
n34\lib\site-packages (from mkdocs)
Requirement already satisfied (use --upgrade to upgrade): livereload>=2.3.2 in c
:\python34\lib\site-packages (from mkdocs)
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe in c:\pytho
n34\lib\site-packages (from Jinja2>=2.7.1->mkdocs)
Requirement already satisfied (use --upgrade to upgrade): six in c:\python34\lib
\site-packages (from livereload>=2.3.2->mkdocs)


D:\other\myardublockly\ardublockly>%PIP% install mock
Collecting mock
  Downloading mock-2.0.0-py2.py3-none-any.whl (56kB)
    54% |█████████████████▎              | 30kB 90kB/s eta 0:0
    72% |███████████████████████         | 40kB 102kB/s e
    90% |████████████████████████████▉   | 51kB 122
    100% |████████████████████████████████| 61kB
 135kB/s
Collecting funcsigs>=1; python_version < "3.3" (from mock)
  Downloading funcsigs-1.0.2-py2.py3-none-any.whl
Collecting pbr>=0.11 (from mock)
  Downloading pbr-1.10.0-py2.py3-none-any.whl (96kB)
    42% |█████████████▌                  | 40kB 890kB/s eta 0:00:0
    52% |█████████████████               | 51kB 825kB/s eta 0:0
    63% |████████████████████▎           | 61kB 877kB/s eta
    73% |███████████████████████▋        | 71kB 918kB/s
    84% |███████████████████████████     | 81kB 963kB
    95% |██████████████████████████████▍ | 92kB 9
    100% |████████████████████████████████| 102k
B 914kB/s
Requirement already satisfied: six>=1.9 in c:\python27\lib\site-packages (from m
ock)
Installing collected packages: funcsigs, pbr, mock
Successfully installed funcsigs-1.0.2 mock-2.0.0 pbr-1.10.0


D:\other\myardublockly\ardublockly>%PIP% freeze
backports-abc==0.5
cefpython3==31.2
certifi==2016.9.26
click==6.6
funcsigs==1.0.2
Jinja2==2.8
livereload==2.5.0
Markdown==2.6.7
MarkupSafe==0.23
mkdocs==0.16.0
mock==2.0.0
numpy==1.12.0rc1+mkl
pbr==1.10.0
py2exe==0.6.9
pyinstall==0.1.4
PyYAML==3.12
singledispatch==3.4.0.3
six==1.10.0
tornado==4.4.2
wxPython-Phoenix==3.0.3


D:\other\myardublockly\ardublockly>%PIP3% freeze
click==6.6
future==0.16.0
Jinja2==2.8
livereload==2.5.0
Markdown==2.6.7
MarkupSafe==0.23
mkdocs==0.16.0
numpy==1.12.0rc1+mkl
pefile==2016.3.28
py2exe==0.9.2.2
PyInstaller==3.2
pypiwin32==219
PyYAML==3.12
six==1.10.0
tornado==4.4.2
wxPython-Phoenix==3.0.3


# 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























  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值