mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-03 13:30:26 -05:00
chore: remove binary build step from Linux CI (#27959)
This commit is contained in:
@@ -8,7 +8,6 @@ import electron from '../../packages/electron'
|
||||
import la from 'lazy-ass'
|
||||
import { promisify } from 'util'
|
||||
import glob from 'glob'
|
||||
import tar from 'tar'
|
||||
|
||||
import * as packages from './util/packages'
|
||||
import * as meta from './meta'
|
||||
@@ -40,7 +39,6 @@ interface BuildCypressAppOpts {
|
||||
version: string
|
||||
skipSigning?: boolean
|
||||
keepBuild?: boolean
|
||||
createTar?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -78,7 +76,7 @@ async function checkMaxPathLength () {
|
||||
// For debugging the flow without rebuilding each time
|
||||
|
||||
export async function buildCypressApp (options: BuildCypressAppOpts) {
|
||||
const { platform, version, keepBuild = false, createTar } = options
|
||||
const { platform, version, keepBuild = false } = options
|
||||
|
||||
log('#checkPlatform')
|
||||
if (platform !== os.platform()) {
|
||||
@@ -214,12 +212,6 @@ require('./packages/server/index.js')
|
||||
log('#transformSymlinkRequires')
|
||||
await transformRequires(meta.distDir())
|
||||
|
||||
// optionally create a tar of the `cypress-build` directory. This is used in CI.
|
||||
if (createTar) {
|
||||
log('#create tar from dist dir')
|
||||
await tar.c({ file: 'cypress-dist.tgz', gzip: true, cwd: os.tmpdir() }, ['cypress-build'])
|
||||
}
|
||||
|
||||
log(`#testDistVersion ${meta.distDir()}`)
|
||||
await testDistVersion(meta.distDir(), version)
|
||||
|
||||
|
||||
@@ -9,17 +9,11 @@ const { getNextVersionForBinary } = require('../get-next-version')
|
||||
|
||||
const { nextVersion } = await getNextVersionForBinary()
|
||||
|
||||
function getArtifactUrl (fileName) {
|
||||
return `https://output.circle-artifacts.com/output/job/${process.env.CIRCLE_WORKFLOW_JOB_ID}/artifacts/${process.env.CIRCLE_NODE_INDEX}/${fileName}`
|
||||
}
|
||||
|
||||
const body = JSON.stringify({
|
||||
parameters: {
|
||||
temp_dir: os.tmpdir(),
|
||||
sha: process.env.CIRCLE_SHA1,
|
||||
job_name: process.env.CIRCLE_JOB,
|
||||
binary_artifact_url: getArtifactUrl('cypress-dist.tgz'),
|
||||
built_source_artifact_url: getArtifactUrl('cypress-built-source.tgz'),
|
||||
triggered_workflow_id: process.env.CIRCLE_WORKFLOW_ID,
|
||||
triggered_job_url: process.env.CIRCLE_BUILD_URL,
|
||||
branch: process.env.CIRCLE_BRANCH,
|
||||
|
||||
Reference in New Issue
Block a user