Merge branch 'win-binary-495' into develop

This commit is contained in:
Gleb Bahmutov
2017-10-05 19:15:04 +00:00
committed by GitHub
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -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
+2 -1
View File
@@ -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}")