Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for withBuildCache (0.2 sec)

  1. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheRequestHeadersIntegrationTest.groovy

            }), "/*", EnumSet.of(DispatcherType.REQUEST))
    
            settingsFile << withHttpBuildCacheServer()
    
            expect:
            withBuildCache().succeeds "compileJava"
    
            when:
            withBuildCache().run "clean"
            then:
            withBuildCache().succeeds "compileJava"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DispatchingBuildCacheIntegrationTest.groovy

        }
    
        def 'push to local'() {
            pushToLocal()
    
            when:
            withBuildCache().run cacheableTask
    
            then:
            executedAndNotSkipped(cacheableTask)
            cacheOperations.assertStoredToLocalCacheForTask(cacheableTask)
            remoteCache.empty
    
            when:
            pullOnly()
            withBuildCache().run 'clean', cacheableTask
    
            then:
            skipped(cacheableTask)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 09 15:17:04 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskIntegrationTest.groovy

            when:
            withBuildCache().run(taskPath)
    
            then:
            cacheOperations.getCacheKeyForTaskOrNull(taskPath) == null
    
            when:
            withBuildCache().run("clean", "cacheable", "-PstoreInCache")
    
            then:
            listCacheFiles().any { it.name == cacheOperations.getCacheKeyForTask(taskPath) }
    
            when:
            withBuildCache().run("clean", "cacheable")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/CachedScalaCompileIntegrationTest.groovy

            def compiledScalaClass = scalaClassFile('UsesJava.class')
    
            when:
            withBuildCache().run ':compileJava', compilationTask
    
            then:
            compiledJavaClass.exists()
            compiledScalaClass.exists()
    
            when:
            withBuildCache().run ':clean', ':compileJava'
    
            then:
            skipped ':compileJava'
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 9K bytes
    - Viewed (0)
  5. platforms/jvm/jacoco/src/integTest/groovy/org/gradle/testing/jacoco/plugins/JacocoCachingIntegrationTest.groovy

                }
            """
            when:
            withBuildCache().run "jacocoTestReport"
            then:
            executedAndNotSkipped ":test", ":jacocoTestReport"
            reportFile.assertIsFile()
    
            when:
            succeeds "clean"
            then:
            reportFile.assertDoesNotExist()
    
            when:
            withBuildCache().run("integrationTest", "jacocoIntegrationTestReport")
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. platforms/jvm/language-jvm/src/testFixtures/groovy/org/gradle/api/tasks/compile/AbstractCachedCompileIntegrationTest.groovy

        abstract String getCompilationTask()
        abstract String getCompiledFile()
    
        def 'compilation can be cached'() {
            when:
            withBuildCache().run compilationTask
    
            then:
            compileIsNotCached()
    
            when:
            withBuildCache().succeeds 'clean', compilationTask
    
            then:
            compileIsCached()
        }
    
        @Issue("https://github.com/gradle/gradle/issues/12860")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 18:44:49 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/JavaIncrementalCompilationWithCachingIntegrationTest.groovy

            source("class A {}", "class B {}")
            withBuildCache().run language.compileTaskName
            def cachedBuild = outputs.snapshot {
                withBuildCache().run "clean", language.compileTaskName
            }
            cachedBuild.groupedOutput.task(":compileJava").outcome == "FROM_CACHE"
    
            when:
            source("class A { /* ${UUID.randomUUID()} */ }")
            withBuildCache().run language.compileTaskName, "--info"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileAvoidanceWithBuildCacheServiceIntegrationTest.groovy

            given:
            project_a_depends_on_project_b()
    
            when:
            withBuildCache().run 'assemble'
    
            then:
            executedAndNotSkipped ':b:jar'
            executedAndNotSkipped ':a:jar'
    
            when:
            make_abi_compatible_change_on_b()
    
            withBuildCache().run 'clean', 'assemble'
    
            then:
            executedAndNotSkipped ':b:jar'
            skipped ':a:compileJava'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceErrorHandlingIntegrationTest.groovy

            when:
            withBuildCache().run "customTask"
    
            then:
            count == 1
            httpBuildCacheServer.cacheDir.listFiles().size() == 1
        }
    
        def "transient error on read is retried"() {
            given:
            settingsFile << withHttpBuildCacheServer()
            withBuildCache().run "customTask"
            withBuildCache().run "clean"
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftCachingIntegrationTest.groovy

            setupProject()
            def allCompileTasks = ['', ':hello', ':log'].collect { compileTask(it, buildType) } as String[]
    
            when:
            withBuildCache().run compileTask(buildType)
    
            then:
            executedAndNotSkipped allCompileTasks
    
            when:
            withBuildCache().run 'clean', installTask(buildType)
    
            then:
            skipped allCompileTasks
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top