Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a24c9aa

Browse files
committed
Trying to cache sonar scanner plugins
1 parent 4ec7f13 commit a24c9aa

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,14 @@ cache:
5858
pip: true
5959
directories:
6060
- $CACHE_DIR
61+
- /home/travis/.sonar/cache
6162
- node_modules
6263
- $MAVEN_CFG
6364

6465
before_install:
66+
#cache to be used between stages. Based on https://github.com/travis-ci/docs-travis-ci-com/issues/1329
67+
#delete all files in cache that are older than 5 days
68+
- mkdir -p $CACHE_DIR/stages_cache; find $CACHE_DIR/stages_cache/ -mtime +5 -exec rm {} \;
6569
#The update_project_version.sh is done before deployment to validate that the change of project files does not break installation
6670
- bash .travis/update_project_version.sh
6771
#Allow for sonar to blame issues

.travis/run_sonar_scanner.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ else
5353
fi
5454

5555
#Execute Sonar scanner
56-
sonar-scanner -Dsonar.exclusions=**
56+
sonar-scanner

0 commit comments

Comments
 (0)