Skip to content

Commit

Permalink
[CI] Move last job from Azure to GH Actions (#517)
Browse files Browse the repository at this point in the history
Minor updates and remove travis and azure CI usage totally.

Relates-To: OLPEDGE-2824

Signed-off-by: Yaroslav Stefinko <[email protected]>
  • Loading branch information
ystefinko authored Aug 7, 2023
1 parent 48e6bfc commit f6b8762
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 95 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,25 @@ jobs:
name: PSV / Linux Build / Tests / Code coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: 16
cache: npm
- name: Build / Tests / Coverage
run: scripts/linux/psv/build_test_psv.sh
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3

psv-commit-checker:
name: PSV.Commit.Checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Commit checker script. Verify commit text
run: scripts/misc/commit_checker.sh
shell: bash

71 changes: 0 additions & 71 deletions .travis.yml

This file was deleted.

16 changes: 0 additions & 16 deletions azure-pipelines.yml

This file was deleted.

2 changes: 0 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ coverage:
precision: 4
notify:
wait_for_ci: false
ci:
- "travis.org"
status:
project:
authentication:
Expand Down
7 changes: 5 additions & 2 deletions scripts/misc/commit_checker.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -e
#
# Copyright (C) 2020-2022 HERE Europe B.V.
# Copyright (C) 2020-2023 HERE Europe B.V.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -23,7 +23,10 @@
# Requirements can be find in scripts/misc/commit_message_recom.txt

# Saving whole commit message into file for reading below
echo "`git log --pretty=format:'%B' -2 | sed '1d' | sed '1d' `" >> commit.log
git log -1 --no-merges --pretty=%B > commit.log
echo "----------------------------------------------"
cat commit.log || true
echo "----------------------------------------------"

# Counting number of lines in file
num_lines=`wc -l commit.log | cut -d'c' -f1`
Expand Down

0 comments on commit f6b8762

Please sign in to comment.