Commit 4c2d4808 authored by carlosperate's avatar carlosperate

Add CircleCi cloud build:

parent bca0c6d9
......@@ -73,9 +73,9 @@ script:
# Deploy the build version in an S3 bucket
deploy:
provider: s3
access_key_id: AKIAIBDOPX6GSMBDEFPQ
access_key_id: AKIAJYJV7NN6HVHCX5NQ
secret_access_key:
secure: QNNNIgHpcTYJZS1K4w8iPqJWq1Xhx8ICoVJ79QURS5Vi4ppnP0smuW13+XdmjoZyoceSoR4iOcKX7o4HXDozsejy3ft72tXgNntVQoOOKYxnV1zKYHc7Q6ID6L3GlPKV2EQid30CM4bP0mm4P8ntuemUOwhqm4mjRwDxAMpxsEbXgNAHAMifn40g5u2rHuwo64+UUll6m2Ues6mekAlwq6YQKn0numrcHRZX9F3kMLyrSHO671EkyfVsBbZpk7+HIEXmgXgPb4juefcxUlhYQFvnlBPyyTG1ec0BE2un714vZe+Gq0w1UYQbIpsAvM1HDWQKa2S9m2gz1TXC5YXOKAfoenyFsrgvdT00zpxVrTLAGhmIgtxsbAYXVPRg/6g5E+DW/JJ2xBfMJyw3j/82vexkHpvQcut9zZ74CE2H0CtyNXHvwdcwMs+qoja6tLw1dvFD7yrTo2T/jCOxFoGYjneF3Syuh8GpALSGGUJDnyFiK0yD2B0r2567csFj5Sc0CO/ExFwfG9zmiVtkm0Xpfq09VcZFjVnJ4k8QyNvrHmnGB/H7P6CskSA1X9gGIyk36Cu17XyyrtIuM+UUIdnrZhWCI3zA/2UVawkEjA+zhpbKFKsxIe37bPpIpNM+OyMLppZzzpcaRAynh6a/8Hcc+ckh4zMg7qWu7VXyYvjSkl0=
secure: PlLCQKTcf9IzBXpEnXUxbJifb0usS7qcghnM0VxBTX0IL3C975JPidrYjP39ge7P
bucket: ardublockly-builds
skip_cleanup: true
local-dir: upload
......@@ -83,4 +83,4 @@ deploy:
acl: public_read
on:
repo: carlosperate/ardublockly
branch: travist-update
branch: travisci
......@@ -42,7 +42,7 @@ def string(buffer):
s = []
for c in buffer:
if c == 0: break
s.append(chr(c & 0xff)) # "& 0xff": hack to convert signed to unsigned
s.append(chr(c & 0xff)) # "& 0xff": hack to convert signed to unsigned
return ''.join(s)
......
## Customize the test machine
machine:
timezone:
Europe/London
# Indicating Ruby to bypass virtual environments
ruby:
version:
1.8.7-p358-falcon-perf
# 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:
#- sudo apt-get update -qq
# OS extra info
- uname -a
- ldd --version
- python --version
- python -c "import struct; print(struct.calcsize('P') * 8)"
# Install wxPython and tkinker
- sudo apt-get install -y python-support
- sudo apt-get install python-tk
- sudo apt-get install -y python-wxgtk2.8 python-wxtools wx2.8-i18n
#- sudo apt-get install -y python-wxgtk3.0 python-wxtools wx3.0-i18n
#- sudo apt-get install -y dpkg-dev build-essential python2.7-dev
#- sudo apt-get install -y libjpeg-dev libtiff-dev
#- sudo apt-get install -y libgtk2.0-dev
#- sudo apt-get install -y libsdl1.2-dev libgstreamer-plugins-base0.10-dev
#- sudo pip install --upgrade --pre -f http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix
# Install cefpython3 (cef from official dropbox link)
- sudo wget https://www.dropbox.com/sh/zar95p27yznuiv1/AACGmGx08UMq8uEGDFlINFdwa/31.2/Linux/python-cefpython3_31.2-1_amd64.deb?dl=1 --directory-prefix=../
- sudo dpkg -i ../python-cefpython3_31.2-1_amd64.deb?dl=1
#- if [ ! -f ~/installers/python-cefpython3_31.2-1_amd64.deb?dl=1 ]; then sudo wget https://www.dropbox.com/sh/zar95p27yznuiv1/AACGmGx08UMq8uEGDFlINFdwa/31.2/Linux/python-cefpython3_31.2-1_amd64.deb?dl=1 --directory-prefix=~/installers/ ; fi
#- sudo dpkg -i ~/installers/python-cefpython3_31.2-1_amd64.deb?dl=1
override:
# Adding cefpython installation dir to travis-ci python paths, listed in:
# https://code.google.com/p/cefpython/wiki/Download_CEF3_Linux
- export PYTHONPATH=$PYTHONPATH:/usr/share/pyshared/
- export PYTHONPATH=$PYTHONPATH:/usr/lib/pymodules/python2.7/
# Build and pack
- python package/build_linux.py
- python package/pack_ardublockly.py
# Get the upload file as a environmenta variable
- cd upload
- for entry in *; do export ardublocklyZipFile="$entry"; done && echo $ardublocklyZipFile
# Automatically cache and restore many dependencies between builds
cache_directories:
- "~/installers"
## Customize test commands
test:
override:
- python ArdublocklyServer/tests/SketchCreator_test.py
- echo $ardublocklyZipFile
## Customize deployment commands
deployment:
staging:
branch: [master, circleci]
codedeploy:
appname-1234:
application_root: /upload
region: us-west-2
revision_location:
revision_type: S3
s3_location:
bucket: ardublockly-builds
key_pattern: linux/ardublockly_{BUILD_NUM}_64bit_{BRANCH}_{SHORT_COMMIT}.zip
deployment_group: my-deployment-group
general:
artifacts:
- "upload/*"
......@@ -11,7 +11,7 @@ Development builds are frequently triggered in build servers and hosted in the f
| Linux build | Windows build | Mac OS X build |
|:-------------------:|:-------------------:|:--------------------:|
| [![Linux Build Status](https://travis-ci.org/carlosperate/ardublockly.svg?branch=master)](https://travis-ci.org/carlosperate/ardublockly) | [![Windows Build status](https://ci.appveyor.com/api/projects/status/t877g920hdiifc2i?svg=true)](https://ci.appveyor.com/project/carlosperate/ardublockly) | TBD |
| [![Linux Build Status](https://circleci.com/gh/carlosperate/ardublockly/tree/master.svg?style=svg)](https://circleci.com/gh/carlosperate/ardublockly/tree/master) | [![Windows Build status](https://ci.appveyor.com/api/projects/status/t877g920hdiifc2i?svg=true)](https://ci.appveyor.com/project/carlosperate/ardublockly) | [![Mac Build Status](https://travis-ci.org/carlosperate/ardublockly.svg?branch=master)](https://travis-ci.org/carlosperate/ardublockly) |
| [Download Link][11] | [Download Link][12] | [Download Link][13] |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment