From 63ea5b854e109967ae5444cf85c5210e56fd4cef Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Thu, 3 Jan 2019 13:18:57 +0200 Subject: [PATCH] Added travis job for checkstyle --- .travis.yml | 5 ++++- scripts/runCheckstyle.sh | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 scripts/runCheckstyle.sh diff --git a/.travis.yml b/.travis.yml index b4673dfc6..c1a7bf55d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,11 +15,14 @@ services: jobs: include: + - stage: "Tests" + name: "Checkstyle" + script: bash scripts/runCheckstyle.sh - stage: "Tests" name: "Unit tests" before_script: bash scripts/prepareTestEnv.sh script: bash scripts/runTests.sh - after_success: bash scripts/sonar.sh + after_success: bash scripts/sonar.sh - stage: "System Tests" name: "Test environment setup" script: bash scripts/prepareServerJars.sh diff --git a/scripts/runCheckstyle.sh b/scripts/runCheckstyle.sh new file mode 100644 index 000000000..0751bd510 --- /dev/null +++ b/scripts/runCheckstyle.sh @@ -0,0 +1,4 @@ +cd $HOME/Plan +gradle checkstyleMain +gradle checkstyleTest +cd $HOME