Advertisement
Guest User

Untitled

a guest
Aug 7th, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. dist: xenial
  2. sudo: required
  3.  
  4. services:
  5. - postgresql
  6. before_script:
  7. - psql -c 'create database travis_ci_test;' -U postgres
  8. before_install:
  9. - sudo apt-get update
  10. - sudo apt-get --yes remove postgresql\*
  11. - sudo apt-get install -y postgresql-11 postgresql-client-11
  12. - sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf
  13. - sudo service postgresql restart 11
  14. addons:
  15. sonarcloud:
  16. organization: "must1"
  17. token:
  18. secure: 8c11bdfaf1350de68bfa2e2678ff8d12f70deaf0 # encrypted value of your token
  19.  
  20. script:
  21. # the following command line builds the project, runs the tests with coverage and then execute the SonarCloud analysis
  22. - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement