Skip to content

Commit 6bec26c

Browse files
ivankravetsme-no-dev
authored andcommitted
Add @platformio to Travis.CI (espressif#154)
* Initial version of build script for @platformio; CI integration for Linux, macOS and Windows * Remove CI badges * Add @platformio to Travis.CI
1 parent 4bae4e0 commit 6bec26c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.travis.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
sudo: false
2-
language: bash
2+
3+
language: python
4+
python:
5+
- "2.7"
6+
37
os:
48
- linux
59

@@ -27,6 +31,11 @@ script:
2731
- cat size.log
2832
- echo -e "travis_fold:end:size_report"
2933

34+
# test library examples with PlatformIO
35+
- pip install -U https://github.com/platformio/platformio/archive/develop.zip
36+
- platformio platform install https://github.com/platformio/platform-espressif32.git#feature/stage
37+
- "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/*/'))\""
38+
3039
notifications:
3140
email:
3241
on_success: change

tools/platformio-build.py

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
http://arduino.cc/en/Reference/HomePage
2323
"""
2424

25+
# Extends: https://github.com/platformio/platform-espressif32/blob/develop/builder/main.py
26+
2527
from os.path import isdir, join
2628

2729
from SCons.Script import DefaultEnvironment

0 commit comments

Comments
 (0)