Skip to content

Commit 4d43ca5

Browse files
committed
Add CI checks for pylint
1 parent cb7ac03 commit 4d43ca5

File tree

4 files changed

+63
-0
lines changed

4 files changed

+63
-0
lines changed

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
language: cpp
2+
os: linux
3+
4+
jobs:
5+
include:
6+
# 18.04/bionic
7+
- os: linux
8+
compiler: gcc
9+
dist: bionic
10+
11+
# 20.04/focal
12+
- os: linux
13+
compiler: gcc
14+
dist: focal
15+
16+
before_install:
17+
- bash ${TRAVIS_BUILD_DIR}/.travis/before_install.sh
18+
19+
install:
20+
- bash ${TRAVIS_BUILD_DIR}/.travis/install.sh
21+
22+
script:
23+
- make
24+
- bash ${TRAVIS_BUILD_DIR}/.travis/script.sh
25+
26+
#notifications:
27+
#email: true
28+
#irc: "ircs://chat.freenode.net:7070/#kxstudio"

.travis/before_install.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# sudo add-apt-repository -y ppa:kxstudio-debian/kxstudio
6+
# sudo add-apt-repository -y ppa:kxstudio-debian/toolchain
7+
8+
sudo apt-get update -qq
9+
# sudo apt-get install kxstudio-repos
10+
# sudo apt-get update -qq

.travis/install.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
sudo apt-get install -y \
6+
pylint3 \
7+
python3-dbus.mainloop.pyqt5 \
8+
python3-pyqt5 python3-pyqt5.qtsvg python3-pyqt5.qtopengl \
9+
pyqt5-dev-tools \
10+
qtbase5-dev

.travis/script.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
if which pylint3 >/dev/null; then
6+
pylint='pylint3'
7+
else
8+
pylint='pylint'
9+
fi
10+
11+
${pylint} \
12+
--extension-pkg-whitelist=dbus.mainloop.pyqt5,PyQt5 \
13+
-E \
14+
--disable=unsubscriptable-object \
15+
src/*.py

0 commit comments

Comments
 (0)