-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4826444
commit 465c588
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Tiobe | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * TUE' | ||
|
||
jobs: | ||
coverity: | ||
if: github.repository == 'canonical/netplan' | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: | | ||
echo "APT::Get::Always-Include-Phased-Updates \"true\";" | sudo tee /etc/apt/apt.conf.d/90phased-updates | ||
sudo sed -i 's/Types: deb/Types: deb deb-src/g' /etc/apt/sources.list.d/ubuntu.sources | ||
sudo apt update | ||
sudo apt build-dep -y netplan.io | ||
sudo apt install -y gcovr python-is-python3 pylint flake8 python3-flake8 | ||
- name: Build Netplan | ||
run: | | ||
# The build directory must be called _build. TIOBE will look for coverage data in it. | ||
meson setup _build --prefix=/usr -Db_coverage=true | ||
meson compile -C _build -v | ||
meson test -C _build -v | ||
- name: Download and Install TICS | ||
run: | | ||
curl --silent --show-error "https://canonical.tiobe.com/tiobeweb/TICS/api/public/v1/fapi/installtics/Script?cfg=default&platform=linux&url=https://canonical.tiobe.com/tiobeweb/TICS/" > install_tics.sh | ||
bash install_tics.sh | ||
- name: Run TICS | ||
run: | | ||
export TICSAUTHTOKEN=${{ secrets.TICSAUTHTOKEN }} | ||
source ~/.profile | ||
TICSQServer -project netplan -branchname master -calc ALL -tmpdir /tmp/tics -branchdir . |