forked from earlephilhower/ESP8266Audio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GitHub CI to run tests (earlephilhower#287)
- Loading branch information
1 parent
3349459
commit 0f40d83
Showing
10 changed files
with
82 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Run whenever a PR is generated or updated. | ||
|
||
# Most jobs check out the code, ensure Python3 is installed, and for build | ||
# tests the ESP8266 toolchain is cached when possible to speed up execution. | ||
|
||
name: ESP8266 Arduino CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
|
||
build-esp8266: | ||
name: Build ESP8266 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
chunk: [0, 1, 2, 3, 4] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Build Sketches | ||
env: | ||
TRAVIS_BUILD_DIR: ${{ github.workspace }} | ||
TRAVIS_TAG: ${{ github.ref }} | ||
BUILD_TYPE: build | ||
BUILD_MOD: 5 | ||
BUILD_REM: ${{ matrix.chunk }} | ||
run: | | ||
bash ./tests/common.sh | ||
# Run host test suite under valgrind for runtime checking of code. | ||
host-tests: | ||
name: Host tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Run host tests | ||
env: | ||
TRAVIS_BUILD_DIR: ${{ github.workspace }} | ||
TRAVIS_TAG: ${{ github.ref }} | ||
run: | | ||
sudo dpkg --add-architecture i386 | ||
sudo apt-get update | ||
sudo apt-get install valgrind lcov gcc-multilib g++-multilib libc6-dbg:i386 | ||
cd ./tests/host/ | ||
make | ||
valgrind --leak-check=full --track-origins=yes -v --error-limit=no --show-leak-kinds=all --error-exitcode=999 ./mp3 | ||
valgrind --leak-check=full --track-origins=yes -v --error-limit=no --show-leak-kinds=all --error-exitcode=999 ./aac | ||
valgrind --leak-check=full --track-origins=yes -v --error-limit=no --show-leak-kinds=all --error-exitcode=999 ./wav | ||
valgrind --leak-check=full --track-origins=yes -v --error-limit=no --show-leak-kinds=all --error-exitcode=999 ./midi | ||
This file was deleted.
Oops, something went wrong.
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
Binary file not shown.
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
Empty file.
Binary file not shown.
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