aboutsummaryrefslogtreecommitdiff
path: root/distelli-manifest.yml
blob: 1723c139e8b35fb5fdd965554ffd9add1a5834b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# CI is dedicated to verify NoExceptions in Javadoc checks - checks-only-javadoc-error.xml
checkstyle/checkstyle:
  Build:
    - set -e
    - SKIP_FILES="appveyor.yml|circle.yml|shippable.yml|.travis.yml|wercker.yml|fast-forward-merge.sh|LICENSE|LICENSE.apache20|README.md|release.sh|RIGHTS.antlr"
    - SKIP_CI=$(if [[ $(git diff --name-only HEAD HEAD~1 | grep -vE "$SKIP_FILES" | cat | wc -c) > 0 ]]; then echo false; else echo true; fi;)
    - echo "SKIP_CI="$SKIP_CI
    - |
      if [[ $SKIP_CI == 'true' ]]; then
        echo "[INFO] Build is skipped by SKIP_CI"
        exit 0;
      fi
    - command -v jdk_switcher > /dev/null && jdk_switcher use oraclejdk8
    - git clone https://github.com/checkstyle/contribution && cd contribution/checkstyle-tester
    - sed -i.'' 's/^guava/#guava/' projects-for-travis.properties
    - sed -i.'' 's/#spring-framework/spring-framework/' projects-for-travis.properties
    - sed -i.'' 's/projects-to-test-on.properties/projects-for-travis.properties/' launch.sh
    - cd ../../ && mvn clean install -Pno-validations
    - cd contribution/checkstyle-tester
    - ./launch.sh -Dcheckstyle.config.location=checks-only-javadoc-error.xml
    - |
      if grep "Got an exception" target/site/checkstyle.html; then
        echo "[ERROR] Exceptions detected"
        exit 1
      else
        echo "[INFO] Finished without exceptions"
        exit 0
      fi