From 8a2a4d827f1afcab746585ede2ac08833d679757 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 4 Mar 2019 17:58:50 +1000 Subject: [PATCH] lint in travis --- .travis.sh | 12 ++++++++++++ .travis.yml | 5 +++-- tools/build_ui.sh | 2 ++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100755 .travis.sh diff --git a/.travis.sh b/.travis.sh new file mode 100755 index 000000000..ae0664266 --- /dev/null +++ b/.travis.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +echo "running unit tests..." +nosetests ./tests + +echo "building ui..." +./tools/build_ui.sh + +echo "linting..." +./tools/lint.sh diff --git a/.travis.yml b/.travis.yml index ab610e419..62ad927c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +dist: xenial language: python python: - "3.6" @@ -5,6 +6,6 @@ install: - sudo apt-get update - sudo apt-get install portaudio19-dev - pip install -r requirements.txt - - pip install nose + - pip install nose pylint pyqt5 pyqtwebengine -script: nosetests ./tests +script: ./.travis.sh diff --git a/tools/build_ui.sh b/tools/build_ui.sh index 4de8ebc93..33deeb4df 100755 --- a/tools/build_ui.sh +++ b/tools/build_ui.sh @@ -4,6 +4,8 @@ # should be on the path. # +set -e + if [ ! -d "designer" ] then echo "Please run this from the project root"