goes all the way to failed verify ping test (#209)

Merge to continue working on zipping / Linux build
This commit is contained in:
Gleb Bahmutov
2017-06-26 11:34:46 -04:00
committed by GitHub
parent 5da690355c
commit 4fa64014b0
3 changed files with 35 additions and 19 deletions
+7 -2
View File
@@ -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)
+6 -1
View File
@@ -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
View File
@@ -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)