From f821bb7412aacd016f571a5edd103eb602a766ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20J=C3=A4ger?= Date: Wed, 26 May 2021 17:31:47 +0200 Subject: [PATCH] Switch from Travis CI to GH Actions --- .github/workflows/doxygen.yml | 28 ++++++++++++++++++++++++++ .github/workflows/platformio.yml | 28 ++++++++++++++++++++++++++ .travis.yml | 34 -------------------------------- 3 files changed, 56 insertions(+), 34 deletions(-) create mode 100644 .github/workflows/doxygen.yml create mode 100644 .github/workflows/platformio.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml new file mode 100644 index 0000000..6bd8f2a --- /dev/null +++ b/.github/workflows/doxygen.yml @@ -0,0 +1,28 @@ +name: Documentation + +on: + push: + branches: [ main ] + +jobs: + build-documentation: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Doxygen Action + uses: mattnotmitt/doxygen-action@v1.1.0 + with: + doxyfile-path: ./Doxyfile + working-directory: . + + - name: GH Pages Deployment + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./html/ + enable_jekyll: false + allow_empty_commit: false + force_orphan: true + publish_branch: gh-pages diff --git a/.github/workflows/platformio.yml b/.github/workflows/platformio.yml new file mode 100644 index 0000000..c064d3b --- /dev/null +++ b/.github/workflows/platformio.yml @@ -0,0 +1,28 @@ +name: PlatformIO CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - name: Set up Python + uses: actions/setup-python@v1 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install wheel + pip install -U platformio + platformio platform install native + platformio update + - name: Run trailing white space check with git + run: | + git diff --check `git rev-list HEAD | tail -n 1`.. + - name: Run PlatformIO build tests + run: | + bash scripts/check.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7e5de99..0000000 --- a/.travis.yml +++ /dev/null @@ -1,34 +0,0 @@ -language: python - -# Cache PlatformIO packages using Travis CI container-based infrastructure -sudo: false -cache: - directories: - - "~/.platformio" - -env: - - PLATFORMIO_CI_SRC=src - -install: - - pip install wheel - - pip install -U platformio - - platformio platform install native - - platformio update - -addons: - apt: - packages: - - doxygen - -script: - - bash scripts/check.sh - - doxygen Doxyfile - -deploy: - provider: pages - skip_cleanup: true - local_dir: html - github_token: $GH_REPO_TOKEN - on: - repo: LibreSolar/charge-controller-firmware - branch: main