Skip to content

Commit

Permalink
Seeed:Arduino: fix travis.yml write error
Browse files Browse the repository at this point in the history
  • Loading branch information
Pillar1989 committed Feb 4, 2020
1 parent 4e8d3a3 commit fd715a5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ language: generic
matrix:
include:
- env:
- BOARD = "arduino:avr:uno"
- BOARD="arduino:avr:uno"
- env:
- BOARD = "Seeeduino:samd:seeed_XIAO_m0"
- BOARD="Seeeduino:samd:seeed_XIAO_m0"
# default phases
before_install:
- mkdir -p "$HOME/bin"
Expand All @@ -23,7 +23,12 @@ before_install:
cd "${HOME}/Arduino/libraries/${repositoryName}"
cd "${TRAVIS_BUILD_DIR}"
}
- installLibrary Seeeed-Studio/Grove_Barometer_HP20x
- installLibrary Seeed-Studio/Grove_Barometer_HP20x
- buildExampleSketch() { arduino-cli compile --warnings all --fqbn $BOARD $PWD/examples/$1 --verbose; }
- buildExampleUtilitySketch() { arduino-cli compile --warnings all --fqbn $BOARD $PWD/examples/utility/$1 --verbose; }
install:
- mkdir -p $HOME/Arduino/libraries
script:
- |
if [ "$BOARD" == "arduino:avr:uno" ]; then
buildExampleSketch HP20x_demo;
Expand Down

0 comments on commit fd715a5

Please sign in to comment.