|
| 1 | +# SPDX-License-Identifier: BSD-3-Clause |
| 2 | +# Copyright (c) 2020 STMicroelectronics |
| 3 | + |
1 | 4 | name: open-amp lib Continuous Integration
|
2 | 5 |
|
3 | 6 | on:
|
|
15 | 18 | - scripts/**
|
16 | 19 |
|
17 | 20 | jobs:
|
18 |
| - checkpatch_review: |
19 |
| - name: checkpatch review |
20 |
| - runs-on: ubuntu-latest |
21 |
| - steps: |
22 |
| - - uses: actions/checkout@v1 |
23 |
| - - name: Install python dependencies |
24 |
| - run: | |
25 |
| - pip3 install setuptools |
26 |
| - pip3 install junitparser gitlint |
27 |
| - - name: Run Compliance Tests |
28 |
| - id: compliance |
29 |
| - env: |
30 |
| - BASE_REF: ${{ github.base_ref }} |
31 |
| - run: | |
32 |
| - export PATH=$PATH:~/.local/bin |
33 |
| - export PROJECT_BASE=$PWD |
34 |
| - git config --global user.email "[email protected]" |
35 |
| - git config --global user.name "Your Name" |
36 |
| - git rebase origin/${BASE_REF} |
37 |
| - export |
38 |
| - ./scripts/ci/check_compliance.py -m checkpatch -m Gitlint -m Identity -c origin/${BASE_REF}.. || true |
39 |
| -
|
40 |
| - - name: upload-results |
41 |
| - uses: actions/upload-artifact@master |
42 |
| - continue-on-error: True |
43 |
| - with: |
44 |
| - name: compliance.xml |
45 |
| - path: compliance.xml |
46 |
| - |
47 |
| - - name: check-warns |
48 |
| - run: | |
49 |
| - if [ -s checkpatch.txt ]; then |
50 |
| - errors=$(cat checkpatch.txt) |
51 |
| - errors="${errors//'%'/'%25'}" |
52 |
| - errors="${errors//$'\n'/'%0A'}" |
53 |
| - errors="${errors//$'\r'/'%0D'}" |
54 |
| - echo "::error file=Checkpatch.txt::$errors" |
55 |
| - exit=1 |
56 |
| - fi |
57 |
| - if [ -s Identity.txt ]; then |
58 |
| - errors=$(cat Identity.txt) |
59 |
| - errors="${errors//'%'/'%25'}" |
60 |
| - errors="${errors//$'\n'/'%0A'}" |
61 |
| - errors="${errors//$'\r'/'%0D'}" |
62 |
| - echo "::error file=Identity.txt::$errors" |
63 |
| - exit=1 |
64 |
| - fi |
65 |
| - if [ -s Gitlint.txt ]; then |
66 |
| - errors=$(cat Gitlint.txt) |
67 |
| - errors="${errors//'%'/'%25'}" |
68 |
| - errors="${errors//$'\n'/'%0A'}" |
69 |
| - errors="${errors//$'\r'/'%0D'}" |
70 |
| - echo "::error file=Gitlint.txt::$errors" |
71 |
| - exit=1 |
72 |
| - fi |
73 |
| - if [ ${exit} == 1 ]; then |
74 |
| - exit 1; |
75 |
| - fi |
76 | 21 | platform_builds:
|
77 | 22 | name: check builds on different platforms
|
78 | 23 | runs-on: ubuntu-latest
|
|
0 commit comments