mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-08 07:50:24 -05:00
goes all the way to failed verify ping test (#209)
Merge to continue working on zipping / Linux build
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
process.env.UV_THREADPOOL_SIZE = 128
|
||||
require('graceful-fs').gracefulify(require('fs'))
|
||||
require("@packages/ts/register")
|
||||
require("@packages/coffee/register")
|
||||
if (process.env.CYPRESS_ENV !== 'production') {
|
||||
require("@packages/ts/register")
|
||||
// else in production mode all TypeScript has been
|
||||
// transpiled into JavaScript
|
||||
// also conditional on coffee, otherwise fails in the packaged Electron app
|
||||
require("@packages/coffee/register")
|
||||
}
|
||||
require && require.extensions && delete require.extensions[".litcoffee"]
|
||||
require && require.extensions && delete require.extensions[".coffee.md"]
|
||||
require("./lib/cypress").start(process.argv)
|
||||
|
||||
@@ -386,7 +386,12 @@ class Base
|
||||
new Promise (resolve, reject) =>
|
||||
rand = "" + Math.random()
|
||||
|
||||
cp.exec "#{@buildPathToAppExecutable()} --smoke-test --ping=#{rand}", (err, stdout, stderr) ->
|
||||
options = {
|
||||
env: {
|
||||
CYPRESS_ENV: "production"
|
||||
}
|
||||
}
|
||||
cp.exec "#{@buildPathToAppExecutable()} --smoke-test --ping=#{rand}", options, (err, stdout, stderr) ->
|
||||
stdout = stdout.replace(/\s/, "")
|
||||
|
||||
return reject(err) if err
|
||||
|
||||
+22
-16
@@ -12,6 +12,7 @@ vinylPaths = require("vinyl-paths")
|
||||
coffee = require("@packages/coffee")
|
||||
electron = require("@packages/electron")
|
||||
packages = require("./util/packages")
|
||||
Darwin = require("./darwin")
|
||||
|
||||
fs = Promise.promisifyAll(fs)
|
||||
|
||||
@@ -153,26 +154,31 @@ module.exports = (platform, version) ->
|
||||
"app-version": version
|
||||
})
|
||||
|
||||
runSmokeTest = ->
|
||||
log("#runSmokeTest", platform)
|
||||
darwin = new Darwin(platform)
|
||||
darwin.runSmokeTest()
|
||||
|
||||
Promise
|
||||
.bind(@)
|
||||
# .then(cleanupPlatform)
|
||||
# .then(buildPackages)
|
||||
# .then(copyPackages)
|
||||
# .then(npmInstallPackages)
|
||||
# .then(createRootPackage)
|
||||
# .then(symlinkPackages)
|
||||
# .then(convertCoffeeToJs)
|
||||
# .then(removeTypeScript)
|
||||
# .then(cleanJs)
|
||||
.then(cleanupPlatform)
|
||||
.then(buildPackages)
|
||||
.then(copyPackages)
|
||||
.then(npmInstallPackages)
|
||||
.then(createRootPackage)
|
||||
.then(symlinkPackages)
|
||||
.then(convertCoffeeToJs)
|
||||
.then(removeTypeScript)
|
||||
.then(cleanJs)
|
||||
.then(symlinkDistPackages)
|
||||
# .then(@obfuscate)
|
||||
# .then(@cleanupSrc)
|
||||
# .then(@npmInstall)
|
||||
# .then(@npmInstall)
|
||||
# .then(@elBuilder)
|
||||
# .then(elBuilder)
|
||||
.then(@obfuscate)
|
||||
.then(@cleanupSrc)
|
||||
.then(@npmInstall)
|
||||
.then(@npmInstall)
|
||||
.then(@elBuilder)
|
||||
.then(elBuilder)
|
||||
.then(symlinkBuildPackages)
|
||||
# .then(@runSmokeTest)
|
||||
.then(runSmokeTest)
|
||||
# .then(@runProjectTest)
|
||||
# .then(@runFailingProjectTest)
|
||||
# .then(@cleanupCy)
|
||||
|
||||
Reference in New Issue
Block a user