forked from bmcage/ardublockly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
81 lines (70 loc) · 2.2 KB
/
circle.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
73
74
75
76
77
78
79
80
81
# Customize the test machine
machine:
timezone:
Europe/London
# Indicating node also offers advantage of bypassing virtual environments
node:
version: 5.1.0
# Override /etc/hosts
hosts:
circlehost: 127.0.0.1
dev.mycompany.com: 127.0.0.1
# Customize checkout
checkout:
post:
- git submodule sync
- git submodule update --init --recursive
# Customize dependencies
dependencies:
pre:
# OS extra info
- uname -a
- ldd --version
- lsb_release -d
# Install and check Python 2 and 3
- sudo apt-get install -y python-support
- sudo apt-get install -y python3-setuptools
- sudo apt-get install -y python3-dev
- sudo apt-get install -y python3-tk
- sudo easy_install3 pip
- python --version
- python -c "import struct; print(struct.calcsize('P') * 8)"
- python3 --version
- python3 -c "import struct; print(struct.calcsize('P') * 8)"
# Python packages (built on Python 2, tests run both 2 and 3)
- sudo pip2 install mock
- sudo pip2 install awscli
- sudo pip3 install mkdocs
- sudo pip3 install pyinstaller
- pyinstaller --version
- pip2 freeze
- pip3 freeze
# Install node.js
#- curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
#- sudo apt-get install -y nodejs
- node --version
- npm --version
override:
# Build and pack, each command executed from project root
- cd blockly && python build.py
- python3 package/build_docs.py
- python3 package/build_pyinstaller.py linux
- cd package/electron && npm install
- cd package/electron && npm run release
- python3 package/pack_ardublockly.py
# Customize test commands
test:
override:
- python ardublocklyserver/tests/sketchcreator_test.py
- python3 ardublocklyserver/tests/sketchcreator_test.py
- python ardublocklyserver/tests/compilersettings_test.py
- python3 ardublocklyserver/tests/compilersettings_test.py
general:
artifacts:
- "releases/*"
# Get the releases files into the AWS S3 bucket
deployment:
master:
branch: /.*/
commands:
- export AWS_DEFAULT_REGION=us-west-2 && cd releases && for entry in *; do aws s3 cp $entry s3://ardublockly-builds/linux/$entry; done