Skip to content

Commit 16abee2

Browse files
committed
Update
1 parent 120c3aa commit 16abee2

File tree

1,772 files changed

+144519
-248259
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,772 files changed

+144519
-248259
lines changed

.appveyor.yml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
environment:
2+
nodejs_version: "Stable"
3+
matrix:
4+
# First group is 32 bit Python 2.7
5+
# There is a bug in 2.7.13, so downgrate to 2.7.12
6+
# http://bugs.python.org/issue29082
7+
- PYTHON: "C:\\Python27.12"
8+
PYTHON_VERSION: "2.7.12"
9+
PYTHON_ARCH: "32"
10+
# Then 32 bit Python 3.4
11+
PYTHON3: "C:\\Python34"
12+
PYTHON3_VERSION: "3.4.4"
13+
PYTHON3_ARCH: "32"
14+
# Add custom environmental variables for pip
15+
PIP: C:\\Python27.12\Scripts\pip
16+
PIP3: C:\\Python34\Scripts\pip
17+
# Add custom environmental variables to ensure 32 bit electron
18+
npm_config_arch: ia32
19+
20+
platform: x86
21+
22+
configuration: Release
23+
24+
init:
25+
- cmd: ECHO Processor architecture - %PROCESSOR_ARCHITECTURE%
26+
- cmd: wmic OS get OSArchitecture
27+
28+
# Install 2.7.12 until 2.7.14 is released and integrated in AppVeyor
29+
- cmd: msiexec.exe /qn /i https://www.python.org/ftp/python/2.7.12/python-2.7.12.msi TARGETDIR=C:\Python27.12
30+
31+
# As AppVeyor has multiple python install, verify which ones will be used
32+
- cmd: ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%
33+
- cmd: "%PYTHON%\\python --version"
34+
- cmd: "%PYTHON%\\python -c \"import struct; print(struct.calcsize('P') * 8)\""
35+
- cmd: ECHO %PYTHON3% %PYTHON3_VERSION% %PYTHON3_ARCH%
36+
- cmd: "%PYTHON3%\\python --version"
37+
- cmd: "%PYTHON3%\\python -c \"import struct; print(struct.calcsize('P') * 8)\""
38+
39+
# Prepare pip and pip3, PATH iterated left to right first hit wins
40+
- cmd: set PATH=%PYTHON%\scripts;%PYTHON3%\scripts;%PATH%
41+
- cmd: ECHO Path - %PATH%
42+
- cmd: "%PIP% --version"
43+
- cmd: "%PIP3% --version"
44+
45+
# Ensure node x86 (appveyor powershell script to switch installed versions)
46+
- ps: Install-Product node 'Stable' x86
47+
- cmd: node --version
48+
- cmd: node -p "process.arch"
49+
- cmd: npm --version
50+
51+
install:
52+
# Git clone happens between init and install
53+
- cmd: git submodule update --init --recursive
54+
55+
# Install Python packages
56+
- cmd: "%PIP3% install pyinstaller"
57+
- cmd: "%PIP3% install mkdocs"
58+
#- cmd: "%PIP3% install pydocstyle"
59+
- cmd: "%PIP3% install coverage"
60+
- cmd: "%PIP3% install requests"
61+
- cmd: "%PIP% install coverage"
62+
- cmd: "%PIP% install requests"
63+
- cmd: "%PIP% install mock"
64+
- cmd: "%PIP% freeze"
65+
- cmd: "%PIP3% freeze"
66+
- cmd: pyinstaller --version
67+
68+
# Build and pack Ardublockly
69+
- cmd: cd blockly && %PYTHON%\python build.py && cd ..\
70+
- cmd: "%PYTHON3%\\python package\\build_docs.py"
71+
- cmd: "%PYTHON3%\\python package\\build_pyinstaller.py windows"
72+
- cmd: cd package\electron && npm install && cd ..\..\
73+
- cmd: cd package\electron && npm run release && cd ..\..\
74+
- cmd: "%PYTHON3%\\python package\\pack_ardublockly.py"
75+
- cmd: dir
76+
77+
# Not a project with an msbuild file, build done at install.
78+
build: off
79+
80+
# CI testing on both Python 2 and 3
81+
test_script:
82+
- cmd: chcp 65001
83+
- cmd: set PYTHONIOENCODING=utf-8
84+
- cmd: "%PYTHON%\\python -m coverage run ardublocklyserver\\tests\\run_all.py"
85+
- cmd: "%PYTHON%\\python -m coverage report"
86+
- cmd: "%PYTHON3%\\python -m coverage run ardublocklyserver\\tests\\run_all.py"
87+
- cmd: "%PYTHON3%\\python -m coverage report"
88+
#- cmd: pydocstyle ardublocklyserver --match-dir='ardublocklyserver'
89+
90+
# Push artefact to S3 bucket and list all
91+
before_deploy:
92+
- ps: Get-ChildItem .\releases\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName ardublockly-s3-deployment }
93+
- ps: foreach($artifactName in $artifacts.keys) { $artifacts[$artifactName] }
94+
95+
# Deploy build to Amazon S3 bucket
96+
deploy:
97+
name: ardublockly-s3-deployment
98+
provider: S3
99+
access_key_id: AKIAJYJV7NN6HVHCX5NQ
100+
secret_access_key:
101+
secure: PlLCQKTcf9IzBXpEnXUxbJifb0usS7qcghnM0VxBTX0IL3C975JPidrYjP39ge7P
102+
bucket: ardublockly-builds
103+
region: us-west-2
104+
set_public: true
105+
folder: windows

.coveragerc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[run]
2+
branch = False
3+
cover_pylib = False
4+
source = ardublocklyserver/
5+
omit =
6+
ardublocklyserver/tests/*
7+
ardublocklyserver/local-packages/*
8+
ardublocklyserver/pyserialports/*
9+
10+
[report]
11+
show_missing = True
12+
skip_covered = False
13+
exclude_lines =
14+
# Don't complain if non-runnable code isn't run:
15+
if 0:
16+
if __name__ == .__main__.:

.eslintignore

Lines changed: 0 additions & 21 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 89 deletions
This file was deleted.

.gitattributes

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/CONTRIBUTING.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/documentation.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)