From 14ebc24f597cb7b6ab7da9627083be82ca57decd Mon Sep 17 00:00:00 2001 From: derAnfaenger Date: Thu, 17 Aug 2017 13:46:36 +0200 Subject: [PATCH] travis: Move linter to a separate job. --- .travis.yml | 8 +++++--- tools/travis_tests | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100755 tools/travis_tests diff --git a/.travis.yml b/.travis.yml index 96788ca..387e968 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,12 +4,14 @@ python: - "3.4" - "3.5" - "3.6" +matrix: + include: + - python: "3.6" + env: TEST_SUITE=linter install: - pip install pycodestyle==2.3.1 - pip install ./zulip - pip install ./zulip_bots - pip install ./zulip_botserver script: - - tools/lint - - python -m unittest discover -v zulip_botserver - - tools/test-bots + - tools/travis_tests diff --git a/tools/travis_tests b/tools/travis_tests new file mode 100755 index 0000000..336fbf4 --- /dev/null +++ b/tools/travis_tests @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -ev + +CURRENT_DIR=$(dirname "$0") +cd "$CURRENT_DIR" +cd .. + +if [ "$TEST_SUITE" == "linter" ] +then + tools/lint +else + python -m unittest discover -v zulip_botserver + tools/test-bots +fi