-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
- Loading branch information
Showing
9 changed files
with
654 additions
and
519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Build Examples | ||
|
||
# Triggers the workflow on push or pull request events | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
PLATFORMIO_SRC_DIR: temp/menu_a_la_carte | ||
if: "!contains(github.event.head_commit.message, 'ci skip')" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Restore or Cache pip | ||
uses: actions/cache@v2.1.4 | ||
with: | ||
path: ~/.cache/pip | ||
# if requirements.txt hasn't changed, then it will be a "cache hit" and pip will be restored | ||
# if requirements.txt HAS changed, it will be a "cache miss" and a new cache of pip will be created if the job completes successfully | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: ${{ runner.os }}-pip- | ||
|
||
- name: Restore or Cache PlatformIO and Libraries | ||
uses: actions/cache@v2.1.4 | ||
with: | ||
path: ~/.platformio | ||
# if nothing in the lock files has changed, then it will be a "cache hit" and pip will be restored | ||
# otherwise, it will be a "cache miss" and a new cache of libraries will be created if the job completes successfully | ||
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
|
||
# This should be pulled from cache, if there's not a new version | ||
- name: Install PlatformIO | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade platformio | ||
- name: Test all configurations | ||
run: | | ||
chmod +x continuous_integration/build-menu-configurations.sh | ||
sh continuous_integration/build-menu-configurations.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#!/bin/sh | ||
|
||
for modemFlag in \ | ||
MS_BUILD_TEST_XBEE_CELLULAR \ | ||
MS_BUILD_TEST_XBEE_LTE_B \ | ||
MS_BUILD_TEST_XBEE_3G_B \ | ||
MS_BUILD_TEST_XBEE_WIFI \ | ||
MS_BUILD_TEST_ESP8266 \ | ||
MS_BUILD_TEST_BG96 \ | ||
MS_BUILD_TEST_MONARCH \ | ||
MS_BUILD_TEST_SIM800 \ | ||
MS_BUILD_TEST_SIM7000 \ | ||
MS_BUILD_TEST_S2GB \ | ||
MS_BUILD_TEST_UBEE_R410M \ | ||
MS_BUILD_TEST_UBEE_U201 | ||
|
||
do | ||
sed -i '1s/^/#define MS_BUILD_TEST_PRE_NAMED_VARS\n#define $modemFlag\n/' examples/menu_a_la_carte/menu_a_la_carte.ino > temp/menu_a_la_carte/main.cpp | ||
|
||
head temp/menu_a_la_carte/main.cpp | ||
|
||
platformio run --project-conf="continuous_integration/platformio.ini" | ||
done | ||
|
||
for sensorFlag in \ | ||
MS_BUILD_TEST_AM2315 \ | ||
MS_BUILD_TEST_DHT \ | ||
MS_BUILD_TEST_SQ212 \ | ||
MS_BUILD_TEST_ATLASCO2 \ | ||
MS_BUILD_TEST_ATLASDO \ | ||
MS_BUILD_TEST_ATLASORP \ | ||
MS_BUILD_TEST_ATLASPH \ | ||
MS_BUILD_TEST_ATLASRTD \ | ||
MS_BUILD_TEST_ATLASEC \ | ||
MS_BUILD_TEST_BME280 \ | ||
MS_BUILD_TEST_OBS3 \ | ||
MS_BUILD_TEST_ES2 \ | ||
MS_BUILD_TEST_VOLTAGE \ | ||
MS_BUILD_TEST_MPL115A2 \ | ||
MS_BUILD_TEST_INSITURDO \ | ||
MS_BUILD_TEST_ACCULEVEL \ | ||
MS_BUILD_TEST_NANOLEVEL \ | ||
MS_BUILD_TEST_MAXBOTIX \ | ||
MS_BUILD_TEST_DS18 \ | ||
MS_BUILD_TEST_MS5803 \ | ||
MS_BUILD_TEST_5TM \ | ||
MS_BUILD_TEST_CTD \ | ||
MS_BUILD_TEST_TEROS11 \ | ||
MS_BUILD_TEST_PALEOTERRA \ | ||
MS_BUILD_TEST_RAINI2C \ | ||
MS_BUILD_TEST_TALLY \ | ||
MS_BUILD_TEST_INA219 \ | ||
MS_BUILD_TEST_CYCLOPS \ | ||
MS_BUILD_TEST_ANALOGEC \ | ||
MS_BUILD_TEST_Y504 \ | ||
MS_BUILD_TEST_Y510 \ | ||
MS_BUILD_TEST_Y511 \ | ||
MS_BUILD_TEST_Y514 \ | ||
MS_BUILD_TEST_Y520 \ | ||
MS_BUILD_TEST_Y532 \ | ||
MS_BUILD_TEST_Y533 \ | ||
MS_BUILD_TEST_Y550 \ | ||
MS_BUILD_TEST_Y4000 \ | ||
MS_BUILD_TEST_DOPTO \ | ||
|
||
do | ||
sed -i '1s/^/#define MS_BUILD_TEST_XBEE_CELLULAR\n#define MS_BUILD_TEST_PRE_NAMED_VARS\n#define $sensorFlag\n/' examples/menu_a_la_carte/menu_a_la_carte.ino > temp/menu_a_la_carte/main.cpp | ||
|
||
head temp/menu_a_la_carte/main.cpp | ||
|
||
platformio run --project-conf="continuous_integration/platformio.ini" | ||
done | ||
|
||
for publisherFlag in \ | ||
MS_BUILD_TEST_MMW \ | ||
MS_BUILD_TEST_DREAMHOST \ | ||
MS_BUILD_TEST_THINGSPEAK \ | ||
|
||
do | ||
sed -i '1s/^/#define MS_BUILD_TEST_XBEE_CELLULAR\n#define MS_BUILD_TEST_PRE_NAMED_VARS\n#define $publisherFlag\n/' examples/menu_a_la_carte/menu_a_la_carte.ino > temp/menu_a_la_carte/main.cpp | ||
|
||
head temp/menu_a_la_carte/main.cpp | ||
|
||
platformio run --project-conf="continuous_integration/platformio.ini" | ||
done |
Oops, something went wrong.