Skip to content

Commit 222e675

Browse files
authored
Update .travis.yml
1 parent 4489923 commit 222e675

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
language: java
22
dist: trusty
3-
sudo: true
3+
sudo: required
44
addons:
55
sonarcloud:
66
organization: "coma123"
77
token:
88
secure: "6e2378f95e57a3e473bf52cdffd4971cdf23073f" # encrypted value of your token
9+
branches:
10+
- development
911

1012
script:
1113
# the following command line builds the project, runs the tests with coverage and then execute the SonarCloud analysis
1214
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.projectKey=coma123_Spring-Boot-Blog-REST-API
1315

1416
before_install:
1517
- chmod +x mvnw
18+
cache:
19+
directories:
20+
- '$HOME/.m2/repository'
21+
- '$HOME/.sonar/cache'

0 commit comments

Comments
 (0)