forked from carlosperate/ardublockly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
72 lines (59 loc) · 2.16 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
61
62
63
64
65
66
67
68
69
70
71
72
environment:
nodejs_version: "0.12.7"
matrix:
# First group is 32 bit python 2.7
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.9"
PYTHON_ARCH: "32"
platform: x86
configuration: Release
init:
- cmd: ECHO Processor architecture - %PROCESSOR_ARCHITECTURE%
- cmd: wmic OS get OSArchitecture
# As AppVeyor has multiple python install, verify 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)"
# Ensure node x86 (appveyor powershell script to switch installed versions)
- ps: Install-Product node 0.12.7 x86
- cmd: node --version
- cmd: npm --version
# Set the relevant pip location to the path
- cmd: set PATH=%PYTHON%\scripts;%PATH%
- cmd: ECHO Path - %PATH%
install:
# Git clone happens between init and install
- cmd: git submodule update --init --recursive
# Install python dependencies
- cmd: pip install https://dl.dropboxusercontent.com/u/74034/ardublockly-dep/win/py2exe-0.6.10a1-cp27-none-win32.whl
- cmd: pip install mock
# Build Ardublockly
- cmd: python package\build_py2exe.py
- cmd: cd package\electron
- cmd: npm install
- cmd: npm run release
- cmd: cd ..\..
- cmd: python package\pack_ardublockly.py
- cmd: dir
# Not a project with an msbuild file, build done at install.
build: off
# For now a simple test that we know passes
test_script:
- cmd: chcp 65001
- cmd: set PYTHONIOENCODING=utf-8
- cmd: python ardublocklyserver\tests\sketchcreator_test.py
- cmd: python ardublocklyserver\tests\compilersettings_test.py
# Push artifact 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