mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-22 23:20:24 -05:00
Merge branch 'win-binary-495' into develop
This commit is contained in:
@@ -18,8 +18,8 @@ car = null
|
||||
# all the projects to trigger / run / change environment variables for
|
||||
_PROVIDERS = {
|
||||
appVeyor: [
|
||||
# "cypress-io/cypress-example-kitchensink"
|
||||
"cypress-io/cypress-test-tiny"
|
||||
"cypress-io/cypress-example-kitchensink"
|
||||
]
|
||||
|
||||
circle: [
|
||||
@@ -109,6 +109,8 @@ awaitEachProjectAndProvider = (fn, filter = R.identity) ->
|
||||
})
|
||||
|
||||
filteredProjects = R.filter(filter, PROJECTS)
|
||||
if check.empty(filteredProjects)
|
||||
console.log("⚠️ zero filtered projects left after filtering")
|
||||
console.table("filtered projects", filteredProjects)
|
||||
Promise.mapSeries filteredProjects, (project) ->
|
||||
fn(project.repo, project.provider, creds)
|
||||
@@ -117,6 +119,7 @@ awaitEachProjectAndProvider = (fn, filter = R.identity) ->
|
||||
# for example appVeyor should be used for Windows testing
|
||||
getFilterByProvider = (providerName) ->
|
||||
if providerName
|
||||
console.log("only allow projects for provider", providerName)
|
||||
projectFilter = R.propEq("provider", providerName)
|
||||
else
|
||||
projectFilter = R.identity
|
||||
|
||||
@@ -39,7 +39,8 @@ checkZipSize = (zipPath) ->
|
||||
stats = fs.statSync(zipPath)
|
||||
zipSize = filesize(stats.size, {round: 0})
|
||||
console.log("zip file size #{zipSize}")
|
||||
MAX_ZIP_FILE_SIZE = megaBytes(200)
|
||||
MAX_ALLOWED_SIZE_MB = if os.platform() == "win32" then 200 else 120
|
||||
MAX_ZIP_FILE_SIZE = megaBytes(MAX_ALLOWED_SIZE_MB)
|
||||
if stats.size > MAX_ZIP_FILE_SIZE
|
||||
throw new Error("Zip file is too large: #{zipSize}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user