From 0b49c5f6b86be6ac1066592e3d625389b67c8772 Mon Sep 17 00:00:00 2001 From: Lady Ada Date: Sat, 18 Jan 2020 13:29:45 -0500 Subject: [PATCH] add actionsfile --- .github/workflows/githubci.yml | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 34 ---------------------------------- 2 files changed, 32 insertions(+), 34 deletions(-) create mode 100644 .github/workflows/githubci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/githubci.yml b/.github/workflows/githubci.yml new file mode 100644 index 0000000..c37f5bd --- /dev/null +++ b/.github/workflows/githubci.yml @@ -0,0 +1,32 @@ +name: Arduino Library CI + +on: [pull_request, push, repository_dispatch] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/setup-python@v1 + with: + python-version: '3.x' + - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + with: + repository: adafruit/ci-arduino + path: ci + + - name: pre-install + run: bash ci/actions_install.sh + + - name: test platforms + run: python3 ci/build_platform.py main_platforms + + - name: clang + run: python3 ci/run-clang-format.py -e "ci/*" -e "bin/*" -r . + + - name: doxygen + env: + GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }} + PRETTYNAME : "Adafruit PCA9685 PWM Library" + run: bash ci/doxy_gen_and_deploy.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0511636..0000000 --- a/.travis.yml +++ /dev/null @@ -1,34 +0,0 @@ -language: c -sudo: false -cache: - directories: - - ~/arduino_ide - - ~/.arduino15/packages/ -git: - depth: false - quiet: true - -env: - global: - - PRETTYNAME="Adafruit PCA9685 PWM Servo Driver Arduino Library" - -addons: - apt: - sources: - - llvm-toolchain-trusty-5.0 - - key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key' - packages: - - clang-format-5.0 - -before_install: - - source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/install.sh) - - curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/run-clang-format.py > run-clang-format.py - -script: - - python run-clang-format.py -r . - - build_main_platforms - -# Generate and deploy documentation -after_success: - - source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/library_check.sh) - - source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/doxy_gen_and_deploy.sh)