Merge pull request #521 from cypress-io/bring-back-commits

Bring back commits
This commit is contained in:
Gleb Bahmutov
2017-09-28 10:25:34 -04:00
committed by GitHub
7 changed files with 65 additions and 30 deletions
+3 -3
View File
@@ -92,7 +92,7 @@ getBumpTasks = ->
type: "list"
message: "Which bump task?"
choices: [{
name: "Bump Cypress Version for all CI providers"
name: "Bump Cypress Binary Version for all CI providers"
value: "version"
},{
name: "Run All Projects for all CI providers"
@@ -120,10 +120,10 @@ whichZipFile = ->
whichVersion = (distDir) ->
## realpath returns the absolute full path
glob("*/package.json", {cwd: distDir, realpath: true})
.map (pkg) =>
.map (pkg) ->
fs.readJsonAsync(pkg)
.get("version")
.then (versions) =>
.then (versions) ->
versions = _.uniq(versions)
prompt(getVersions(versions))
+24 -20
View File
@@ -6,33 +6,37 @@ path = require("path")
fs = Promise.promisifyAll(fs)
car = null
PROVIDERS = {
circle: [
"cypress-io/cypress-dashboard"
"cypress-io/cypress-core-example"
"cypress-io/cypress-core-desktop-gui"
"cypress-io/cypress-example-kitchensink"
"cypress-io/cypress-example-todomvc"
"cypress-io/cypress-example-piechopper"
"cypress-io/cypress-example-recipes"
"cypress-io/cypress-example-node-versions"
"cypress-io/cypress-example-module-api"
# "cypress-io/cypress-dashboard"
# "cypress-io/cypress-core-example"
# "cypress-io/cypress-core-desktop-gui"
# "cypress-io/cypress-example-kitchensink"
# "cypress-io/cypress-example-todomvc"
# "cypress-io/cypress-example-piechopper"
# "cypress-io/cypress-example-recipes"
"cypress-io/cypress-test-example-repos"
"cypress-io/cypress-test-node-versions"
"cypress-io/cypress-test-nested-projects"
"cypress-io/cypress-test-module-api"
"cypress-io/cypress-test-ci-environments"
]
travis: [
# "cypress-io/cypress-dashboard"
"cypress-io/cypress-core-example"
"cypress-io/cypress-core-desktop-gui"
"cypress-io/cypress-example-kitchensink"
"cypress-io/cypress-example-todomvc"
"cypress-io/cypress-example-piechopper"
"cypress-io/cypress-example-recipes"
]
# travis: [
# # "cypress-io/cypress-dashboard"
# "cypress-io/cypress-core-example"
# "cypress-io/cypress-core-desktop-gui"
# "cypress-io/cypress-example-kitchensink"
# "cypress-io/cypress-example-todomvc"
# "cypress-io/cypress-example-piechopper"
# "cypress-io/cypress-example-recipes"
# ]
}
awaitEachProjectAndProvider = (fn) ->
ciJson = path.join(__dirname, "support/ci.json")
ciJson = path.join(__dirname, "support/.ci.json")
creds = fs.readJsonSync(ciJson, "utf8")
fs.readJsonAsync(ciJson)
@@ -58,7 +62,7 @@ module.exports = {
version: (version) ->
awaitEachProjectAndProvider (project, provider) ->
car.updateProjectEnv(project, provider, {
CYPRESS_VERSION: version
CYPRESS_BINARY_VERSION: version
})
run: ->
+1 -1
View File
@@ -85,7 +85,7 @@ deploy = {
when "run"
bump.run()
when "version"
ask.whichVersion(meta.distDir)
ask.whichVersion(meta.distDir(""))
.then (v) ->
bump.version(v)