Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 2df3b8f

Browse files
authored
Add PlatformIO to Travis CI (#123)
* Add PlatformIO to Travis CI * Update .travis.yml
1 parent ee0d3bb commit 2df3b8f

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.travis.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sudo: false
2-
language: bash
2+
language: python
33
os:
44
- linux
55

@@ -12,11 +12,16 @@ stages:
1212
jobs:
1313
include:
1414

15-
- name: "Build Examples"
15+
- name: "Arduino Build"
1616
if: tag IS blank AND (type = pull_request OR (type = push AND branch = master))
1717
stage: build
1818
script: bash $TRAVIS_BUILD_DIR/travis/build.sh
1919

20+
- name: "PlatformIO Build"
21+
if: tag IS blank AND (type = pull_request OR (type = push AND branch = master))
22+
stage: build
23+
script: bash $TRAVIS_BUILD_DIR/travis/build-pio.sh
24+
2025
notifications:
2126
email:
2227
on_success: change

travis/build-pio.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
echo -e "travis_fold:start:install_pio"
4+
pip install -U platformio
5+
echo -e "travis_fold:end:install_pio"
6+
7+
echo -e "travis_fold:start:test_pio"
8+
for EXAMPLE in $PWD/examples/*/*.ino; do
9+
platformio ci $EXAMPLE -l '.' -b esp12e
10+
done
11+
echo -e "travis_fold:end:test_pio"

0 commit comments

Comments
 (0)