Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for withBuildCacheEnabled (0.33 sec)

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

                        enabled = true
                        url = "$url"
                        push = $push
                        $credentials
                    }
                }
            """
            executer.withBuildCacheEnabled()
    
            when:
            succeeds("help")
    
            then:
            def result = result()
    
            result.remoteEnabled
            !result.localEnabled
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache/src/integTest/groovy/org/gradle/caching/internal/FinalizeBuildCacheConfigurationBuildOperationIntegrationTest.groovy

                        enabled = true
                        directory = '${cacheDir.absoluteFile.toURI().toString()}'
                        push = true
                    }
                }
            """
            executer.withBuildCacheEnabled()
    
            when:
            succeeds("help")
    
            then:
            def result = result()
    
            result.enabled
            result.localEnabled
            !result.remoteEnabled
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileLineEndingSensitivityIntegrationTest.groovy

            writeJavaSourceWithUnixLineEndings()
    
            when:
            executer.withBuildCacheEnabled()
            succeeds compileTask
    
            then:
            executedAndNotSkipped compileTask
    
            when:
            writeJavaSourceWithWindowsLineEndings()
            succeeds "clean"
    
            and:
            executer.withBuildCacheEnabled()
            succeeds compileTask
    
            then:
            fromCache compileTask
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/caching/configuration/internal/BuildCacheCompositeConfigurationIntegrationTest.groovy

            def enablingCode = by == EnabledBy.PROGRAMMATIC ? """\ngradle.startParameter.buildCacheEnabled = true\n""" : ""
            if (by == EnabledBy.INVOCATION_SWITCH) {
                executer.beforeExecute {
                    withBuildCacheEnabled()
                }
            }
    
            def mainCache = new TestBuildCache(file("main-cache"))
            def buildSrcCache = new TestBuildCache(file("buildSrc-cache"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CacheTaskOutputIntegrationTest.groovy

        def localCache = new TestBuildCache(file("local-cache"))
        def cacheOperations = new BuildCacheOperationFixtures(executer, temporaryFolder)
    
        def setup() {
            executer.beforeExecute { withBuildCacheEnabled() }
            settingsFile << localCache.localCacheConfiguration()
        }
    
        def "cached origin metadata is correct"() {
            file("input.txt") << "data"
    
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/outputorigin/BuildCacheOutputOriginIntegrationTest.groovy

            outputOrigin.originId(taskPath)
        }
    
        OriginMetadata origin(String taskPath) {
            outputOrigin.origin(taskPath)
        }
    
        def setup() {
            executer.beforeExecute {
                it.withBuildCacheEnabled()
            }
        }
    
        def "exposes origin build id when reusing cached outputs"() {
            given:
            buildScript """
                apply plugin: "base"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 24 14:10:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/BuildCacheLocalCacheIntegrationTest.groovy

            """
    
            settingsFile << localCache.localCacheConfiguration() << remoteCache.remoteCacheConfiguration()
    
            executer.beforeExecute { it.withBuildCacheEnabled() }
        }
    
        def "remote loads are cached locally"() {
            given:
            settingsFile << """
                buildCache { local.push = false }
            """
    
            when:
            succeeds("t")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/process/internal/CancellationIntegrationTest.groovy

            """
        }
    
        private void startBuild(String task, boolean buildCacheEnabled) {
            executer.withArgument('--debug').withTasks(task)
            if (buildCacheEnabled) {
                executer.withBuildCacheEnabled()
            }
    
            client = new DaemonClientFixture(executer.start())
            waitForDaemonLog(START_UP_MESSAGE)
            daemons.daemon.assertBusy()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 04:31:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskExecutionErrorHandlingIntegrationTest.groovy

                        shouldFail = System.getProperty("failOn")
                        push = true
                    }
                }
            """
    
            executer.beforeExecute {
                executer.withBuildCacheEnabled()
            }
        }
    
        def "remote cache #failEvent error stack trace is printed when requested (#showStacktrace)"() {
            // Need to do it like this because stacktraces are always enabled for integration tests
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:22 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CacheTaskArchiveErrorIntegrationTest.groovy

        def buildOperations = new BuildOperationsFixture(executer, temporaryFolder)
        def cacheOperations = new BuildCacheOperationFixtures(buildOperations)
    
        def setup() {
            executer.beforeExecute { withBuildCacheEnabled() }
            settingsFile << localCache.localCacheConfiguration()
        }
    
        @ToBeFixedForConfigurationCache(skip = INVESTIGATE)
        def "fails build when packing archive fails"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top