Skip to content

Commit

Permalink
Merge pull request #51 from frankleonrose/feat-platformio
Browse files Browse the repository at this point in the history
Make platformio tests work on pull request
  • Loading branch information
terrillmoore authored Nov 12, 2018
2 parents 318bf1d + e7c46f8 commit 105df62
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,20 @@ matrix:
install:
- pip install -U platformio
script:
- mkdir test_platformio_deps
- cd test_platformio_deps
- echo "[env:adafruit_feather_m0]" > platformio.ini
- echo "platform = atmelsam" >> platformio.ini
- echo "board = adafruit_feather_m0" >> platformio.ini
- echo "framework = arduino" >> platformio.ini
- if [ "${TRAVIS_PULL_REQUEST_SLUG}" = "" ]; then
- echo "lib_deps = SPI, https://github.com/${TRAVIS_REPO_SLUG}" >> platformio.ini
- else
- echo "lib_deps = SPI, https://github.com/${TRAVIS_PULL_REQUEST_SLUG}#${TRAVIS_PULL_REQUEST_BRANCH}" >> platformio.ini
- fi
- echo "build_flags =" >> platformio.ini
- echo " -DCFG_us915" >> platformio.ini
- cat platformio.ini
- mkdir src
- echo "int main() {}" > src/main.cpp
- platformio run
Expand Down
7 changes: 0 additions & 7 deletions test_platformio_deps/platformio.ini

This file was deleted.

0 comments on commit 105df62

Please sign in to comment.