Skip to content

Commit

Permalink
Add CI checks for pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Aug 7, 2020
1 parent cb7ac03 commit 4d43ca5
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
@@ -0,0 +1,28 @@
language: cpp
os: linux

jobs:
include:
# 18.04/bionic
- os: linux
compiler: gcc
dist: bionic

# 20.04/focal
- os: linux
compiler: gcc
dist: focal

before_install:
- bash ${TRAVIS_BUILD_DIR}/.travis/before_install.sh

install:
- bash ${TRAVIS_BUILD_DIR}/.travis/install.sh

script:
- make
- bash ${TRAVIS_BUILD_DIR}/.travis/script.sh

#notifications:
#email: true
#irc: "ircs://chat.freenode.net:7070/#kxstudio"
10 changes: 10 additions & 0 deletions .travis/before_install.sh
@@ -0,0 +1,10 @@
#!/bin/bash

set -e

# sudo add-apt-repository -y ppa:kxstudio-debian/kxstudio
# sudo add-apt-repository -y ppa:kxstudio-debian/toolchain

sudo apt-get update -qq
# sudo apt-get install kxstudio-repos
# sudo apt-get update -qq
10 changes: 10 additions & 0 deletions .travis/install.sh
@@ -0,0 +1,10 @@
#!/bin/bash

set -e

sudo apt-get install -y \
pylint3 \
python3-dbus.mainloop.pyqt5 \
python3-pyqt5 python3-pyqt5.qtsvg python3-pyqt5.qtopengl \
pyqt5-dev-tools \
qtbase5-dev
15 changes: 15 additions & 0 deletions .travis/script.sh
@@ -0,0 +1,15 @@
#!/bin/bash

set -e

if which pylint3 >/dev/null; then
pylint='pylint3'
else
pylint='pylint'
fi

${pylint} \
--extension-pkg-whitelist=dbus.mainloop.pyqt5,PyQt5 \
-E \
--disable=unsubscriptable-object \
src/*.py

0 comments on commit 4d43ca5

Please sign in to comment.