From 125841604f8b08934c993d3a02682d7b77debd17 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Tue, 3 Nov 2020 20:07:23 +0100 Subject: [PATCH] move from travis to github actions --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ .travis.yml | 13 ------------- 2 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b940d07 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: PlatformIO CI + +on: [push, pull_request] + +jobs: + PlatformIO-Check: + runs-on: ubuntu-latest + steps: + - run: sudo apt-get install python3-setuptools python3-wheel + - run: pip3 install platformio + - run: echo "$HOME/.local/bin" >> $GITHUB_PATH + - uses: actions/checkout@v2 + - run: platformio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high --skip-packages --flags "--suppress=*:*.pio\* --inline-suppr" -v + + PlatformIO-Build: + runs-on: ubuntu-latest + steps: + - run: sudo apt-get install python3-setuptools python3-wheel + - run: pip3 install platformio + - run: echo "$HOME/.local/bin" >> $GITHUB_PATH + - uses: actions/checkout@v2 + - run: platformio run + - uses: actions/upload-artifact@v2 + with: + name: firmware + path: .pio/build/*/firmware.bin diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ed77013..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: python -python: - - "2.7" -sudo: false -cache: - directories: - - "~/.platformio" -install: - - pip install -U platformio - - platformio update -script: - - platformio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high - - platformio run