From d891bddc90ea995f8b88ebe3074a4e317ae1759e Mon Sep 17 00:00:00 2001 From: Curtis Malainey Date: Mon, 3 May 2021 18:42:52 -0700 Subject: [PATCH] actions: remove travis We removed them from the main repo, lets remove them here too. Signed-off-by: Curtis Malainey --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ .github/workflows/pull-request.yml | 14 ++++++++++++++ .travis.yml | 22 ---------------------- 3 files changed, 37 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7bbafb6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +--- +# Basic build test + +name: build + +# yamllint disable-line rule:truthy +on: [pull_request, push, workflow_dispatch] + +jobs: + build-test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + with: {fetch-depth: 50, submodules: recursive} + + - name: install cmake + run: sudo apt update + - run: sudo apt install -y cmake + + - name: build + run: cmake -B build/ + - run: make -Werror -Wall -Wmissing-prototypes -Wimplicit-fallthrough=3 \ + -Wpointer-arith -C build/ diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index b821ce4..b6b2591 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -23,3 +23,17 @@ jobs: - name: run yamllint run: yamllint .github/workflows/*.yml + checkpatch: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: install codespell + run: sudo apt update + - run: sudo apt install -y codespell jq + + - name: run codespell + run: curl ${{ github.event.pull_request.commits_url }} | jq '.[].sha' -r | cat + # run: curl ${{ github.event.pull_request.commits_url }} | jq '.[].sha' -r | xargs scripts/checkpatch.pl --no-tree --strict --codespell --no-signoff -g diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d895210..0000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: c - -git: - depth: false - -services: - - docker - -jobs: - include: - - name: "Build Test" - before_install: docker pull thesofproject/sof && docker tag thesofproject/sof sof - script: - - echo -e '#!/bin/bash\nmkdir build && cd build && cmake .. && make -Werror -Wall -Wmissing-prototypes -Wimplicit-fallthrough=3 -Wpointer-arith' > build.sh && chmod +x build.sh - - docker run -i -t -v $(pwd):/home/sof/work/sof.git --user $(id -u) sof ./build.sh - - name: checkpatch - before_install: - - sudo apt-get -y install codespell - script: - - git --no-pager log --oneline --graph --decorate --max-count=5 - - git --no-pager log --oneline --graph --decorate --max-count=5 "${TRAVIS_BRANCH}" - - (set -x; scripts/checkpatch.pl --no-tree --strict --codespell --no-signoff -g ${TRAVIS_COMMIT_RANGE/.../..})