Add @PlatformIO to Travis.CI (#154)

* Initial version of build script for @PlatformIO; CI integration for Linux, macOS and Windows

* Remove CI badges

* Add @PlatformIO to Travis.CI
This commit is contained in:
Ivan Kravets 2017-01-28 18:15:46 +02:00 committed by Me No Dev
parent 4bae4e060b
commit 6bec26cfbf
2 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,9 @@
sudo: false sudo: false
language: bash
language: python
python:
- "2.7"
os: os:
- linux - linux
@ -27,6 +31,11 @@ script:
- cat size.log - cat size.log
- echo -e "travis_fold:end:size_report" - echo -e "travis_fold:end:size_report"
# test library examples with PlatformIO
- pip install -U https://github.com/platformio/platformio/archive/develop.zip
- platformio platform install https://github.com/platformio/platform-espressif32.git#feature/stage
- "python -c \"import glob,subprocess,sys; map(lambda p: (sys.stdout.write('Library example: %s\\n' % p), subprocess.call(['pio', 'ci', p, '--board', 'esp32dev'])), glob.glob('libraries/*/examples/*/'))\""
notifications: notifications:
email: email:
on_success: change on_success: change

View File

@ -22,6 +22,8 @@ kinds of creative coding, interactive objects, spaces or physical experiences.
http://arduino.cc/en/Reference/HomePage http://arduino.cc/en/Reference/HomePage
""" """
# Extends: https://github.com/platformio/platform-espressif32/blob/develop/builder/main.py
from os.path import isdir, join from os.path import isdir, join
from SCons.Script import DefaultEnvironment from SCons.Script import DefaultEnvironment