diff options
author | Evgeny Mandrikov <138671+Godin@users.noreply.github.com> | 2019-05-15 17:21:37 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-05-15 20:21:12 +0200 |
commit | c24973e34ca984aeb43409a12a064b026abf5740 (patch) | |
tree | 296bd64a6f19ef55d467f2d8a783d2597beb04ec /server/sonar-vsts/build.gradle | |
parent | f167719e46408daff650cda6b4df5c0a547d2257 (diff) | |
download | sonarqube-c24973e34ca984aeb43409a12a064b026abf5740.tar.gz sonarqube-c24973e34ca984aeb43409a12a064b026abf5740.zip |
Enable Gradle cache for "yarn_validate-ci" tasks (#1616)
Diffstat (limited to 'server/sonar-vsts/build.gradle')
-rw-r--r-- | server/sonar-vsts/build.gradle | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/server/sonar-vsts/build.gradle b/server/sonar-vsts/build.gradle index e76f8102b25..d6ecf126fc1 100644 --- a/server/sonar-vsts/build.gradle +++ b/server/sonar-vsts/build.gradle @@ -28,6 +28,24 @@ yarn_run { } build.dependsOn(yarn_run) +"yarn_validate-ci" { + // Note that outputs are not relocatable, because contain absolute paths, and that's why inputs are not relativized + ['config', 'src/main/js', + '../sonar-web/src/main/js/api', + '../sonar-web/src/main/js/app', + '../sonar-web/src/main/js/components', + '../sonar-web/src/main/js/helpers' + ].each { + inputs.dir(it) + } + ['package.json', 'yarn.lock', 'tsconfig.json', '.eslintrc', '.eslintignore'].each { + inputs.file(it) + } + outputs.file('eslint-report.json') + outputs.dir('coverage') + outputs.cacheIf { true } +} + def sources = fileTree(dir: "src") + fileTree(dir: "scripts") + fileTree(dir: "config") task licenseCheckWeb(type: com.hierynomus.gradle.license.tasks.LicenseCheck) { |