Skip to content

Commit

Permalink
Add CI checks
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Aug 4, 2020
1 parent 021499a commit 977b553
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions .travis/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -e

sudo apt-get install -y \
pylint3 \
python3-pyqt5 python3-pyqt5.qtsvg python3-pyqt5.qtopengl \
pyqt5-dev-tools \
qtbase5-dev
15 changes: 15 additions & 0 deletions .travis/script.sh
Original file line number Diff line number Diff line change
@@ -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 977b553

Please sign in to comment.