Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dist: xenial
- sudo: required
- services:
- - postgresql
- before_script:
- - psql -c 'create database travis_ci_test;' -U postgres
- before_install:
- - sudo apt-get update
- - sudo apt-get --yes remove postgresql\*
- - sudo apt-get install -y postgresql-11 postgresql-client-11
- - sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf
- - sudo service postgresql restart 11
- addons:
- sonarcloud:
- organization: "must1"
- token:
- secure: 8c11bdfaf1350de68bfa2e2678ff8d12f70deaf0 # encrypted value of your token
- script:
- # the following command line builds the project, runs the tests with coverage and then execute the SonarCloud analysis
- - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement