-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
75 lines (66 loc) · 2.6 KB
/
.travis.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
# We are using the iOS build system to create Mac OS X python builds
language: objective-c
before_install:
# OS extra info
- uname -a
- python --version
- python -c "import struct; print(struct.calcsize('P') * 8)"
- pip freeze
# Install Python 2 and 3 with pip and check versions
- brew update
- brew install python3
- brew link --overwrite python3
- brew install python
- brew link --overwrite python
- PATH=/usr/local/bin:$PATH
- echo $PATH
- python --version
- python -c "import struct; print(struct.calcsize('P') * 8)"
- python3 --version
- python3 -c "import struct; print(struct.calcsize('P') * 8)"
- brew install libcouchbase
# Install Python packages (built with Python 3, tests for 2 and 3)
- pip install mock
- pip3 install mkdocs
- pip3 install pyinstaller
- pyinstaller --version
- pip freeze
- pip3 freeze
# Install node.js
- brew unlink node
- brew install node
- node --version
- npm --version
# Build and pack Ardublockly
install:
- cd blockly && python build.py && cd ../
- python3 package/build_docs.py
- python3 package/build_pyinstaller.py mac
- cd package/electron && npm install && cd ../../
- cd package/electron && npm run release && cd ../../
- python3 package/pack_ardublockly.py
- du -sk releases/
# Run the tests in both Python 2 and 3
script:
- python ardublocklyserver/tests/sketchcreator_test.py
- python3 ardublocklyserver/tests/sketchcreator_test.py
- python ardublocklyserver/tests/compilersettings_test.py
- python3 ardublocklyserver/tests/compilersettings_test.py
# Deploy the build version in an S3 bucket
deploy:
provider: s3
access_key_id: AKIAIBDOPX6GSMBDEFPQ
secret_access_key:
secure: QNNNIgHpcTYJZS1K4w8iPqJWq1Xhx8ICoVJ79QURS5Vi4ppnP0smuW13+XdmjoZyoceSoR4iOcKX7o4HXDozsejy3ft72tXgNntVQoOOKYxnV1zKYHc7Q6ID6L3GlPKV2EQid30CM4bP0mm4P8ntuemUOwhqm4mjRwDxAMpxsEbXgNAHAMifn40g5u2rHuwo64+UUll6m2Ues6mekAlwq6YQKn0numrcHRZX9F3kMLyrSHO671EkyfVsBbZpk7+HIEXmgXgPb4juefcxUlhYQFvnlBPyyTG1ec0BE2un714vZe+Gq0w1UYQbIpsAvM1HDWQKa2S9m2gz1TXC5YXOKAfoenyFsrgvdT00zpxVrTLAGhmIgtxsbAYXVPRg/6g5E+DW/JJ2xBfMJyw3j/82vexkHpvQcut9zZ74CE2H0CtyNXHvwdcwMs+qoja6tLw1dvFD7yrTo2T/jCOxFoGYjneF3Syuh8GpALSGGUJDnyFiK0yD2B0r2567csFj5Sc0CO/ExFwfG9zmiVtkm0Xpfq09VcZFjVnJ4k8QyNvrHmnGB/H7P6CskSA1X9gGIyk36Cu17XyyrtIuM+UUIdnrZhWCI3zA/2UVawkEjA+zhpbKFKsxIe37bPpIpNM+OyMLppZzzpcaRAynh6a/8Hcc+ckh4zMg7qWu7VXyYvjSkl0=
bucket: ardublockly-builds
skip_cleanup: true
local-dir: releases
upload-dir: mac
acl: public_read
on:
repo: carlosperate/ardublockly
all_branches: true
notifications:
email:
on_success: change
on_failure: change