You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

travis.sh 860B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash -v
  2. set -euo pipefail
  3. function configureTravis {
  4. mkdir -p ~/.local
  5. curl -sSL https://github.com/SonarSource/travis-utils/tarball/v27 | tar zx --strip-components 1 -C ~/.local
  6. source ~/.local/bin/install
  7. }
  8. configureTravis
  9. #build_snapshot SonarSource/sonar-scanner-api
  10. build_snapshot SonarSource/orchestrator
  11. case "$TARGET" in
  12. CI)
  13. regular_mvn_build_deploy_analyze
  14. ;;
  15. IT)
  16. MIN_SQ_VERSION="LTS"
  17. mvn install -DskipTests=true -Dsource.skip=true -Denforcer.skip=true -B -e -V
  18. echo '======= Run integration tests on minimal supported version of SonarQube ($MIN_SQ_VERSION)'
  19. cd it
  20. mvn -Dsonar.runtimeVersion="$MIN_SQ_VERSION" -Dmaven.test.redirectTestOutputToFile=false verify -e -B -V
  21. # all other versions of SQ are tested by the QA pipeline at SonarSource
  22. ;;
  23. *)
  24. echo "Unexpected TARGET value: $TARGET"
  25. exit 1
  26. ;;
  27. esac