actions: remove travis

We removed them from the main repo, lets remove them here too.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
This commit is contained in:
Curtis Malainey 2021-05-03 18:42:52 -07:00 committed by Liam Girdwood
parent af9a2fe58f
commit d20f1d8a85
4 changed files with 51 additions and 25 deletions

6
.checkpatch.conf Normal file
View File

@ -0,0 +1,6 @@
--codespell
--codespellfile scripts/spelling.txt
--ignore C99_COMMENT_TOLERANCE
--no-tree
--strict
-g

25
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,25 @@
---
# Basic build test
name: build
# yamllint disable-line rule:truthy
on: [pull_request, push, workflow_dispatch]
env:
CMAKE_C_FLAGS: "-Werror -Wall -Wmissing-prototypes\
-Wimplicit-fallthrough=3 -Wpointer-arith"
jobs:
build-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with: {fetch-depth: 50, submodules: recursive}
- name: install tools
run: sudo apt update && sudo apt install -y ninja-build
- name: build
run: cmake -B build/ -G Ninja
- run: cmake --build build/

View File

@ -9,17 +9,34 @@
# 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]
jobs:
yamllint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with: {fetch-depth: 50, submodules: recursive}
with:
fetch-depth: 50
submodules: recursive
- name: run yamllint
run: yamllint .github/workflows/*.yml
checkpatch:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
- name: install codespell
run: sudo apt update && sudo apt install -y codespell
- name: checkpatch.pl PR review
uses: webispy/checkpatch-action@v9
env:
CHECKPATCH_COMMAND: ./scripts/checkpatch.pl

View File

@ -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/.../..})