Skip to content

Commit

Permalink
actions: remove travis
Browse files Browse the repository at this point in the history
We removed them from the main repo, lets remove them here too.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
  • Loading branch information
cujomalainey committed Sep 18, 2021
1 parent 9716e10 commit 501822a
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 23 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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/
16 changes: 15 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# github.com also has a powerful web editor that can be used without
# committing.

name: checkpatch
name: codestyle

# yamllint disable-line rule:truthy
on: [pull_request]
Expand All @@ -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

- 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 -n1 scripts/checkpatch.pl --no-tree --strict --codespell -g
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4129,6 +4129,8 @@ sub process {
"LINUX_VERSION_CODE should be avoided, code should be for the version to which it is merged\n" . $herecurr);
}

if(!$SOF) {

# check for uses of printk_ratelimit
if ($line =~ /\bprintk_ratelimit\s*\(/) {
WARN("PRINTK_RATELIMITED",
Expand Down Expand Up @@ -4169,6 +4171,8 @@ sub process {
"Prefer dev_$level(... to dev_printk(KERN_$orig, ...\n" . $herecurr);
}

} # !$SOF

# ENOSYS means "bad syscall nr" and nothing else. This will have a small
# number of false positives, but assembly files are not checked, so at
# least the arch entry code will not trigger this warning.
Expand Down

0 comments on commit 501822a

Please sign in to comment.