mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-06 14:39:48 -06:00
chore: Migrate Windows Tests from Appveyor to CircleCI (#19037)
Co-authored-by: Zach Bloomquist <git@chary.us> Co-authored-by: ElevateBart <ledouxb@gmail.com>
This commit is contained in:
@@ -68,9 +68,7 @@ const shorten = (s) => {
|
||||
* Grabs the full commit SHA and its short version from CI environment variables
|
||||
*/
|
||||
const getShortCommit = () => {
|
||||
const sha =
|
||||
process.env.APPVEYOR_REPO_COMMIT ||
|
||||
process.env.CIRCLE_SHA1
|
||||
const sha = process.env.CIRCLE_SHA1
|
||||
|
||||
if (sha) {
|
||||
return {
|
||||
@@ -87,10 +85,6 @@ const getCIName = () => {
|
||||
if (process.env.CIRCLECI) {
|
||||
return 'Circle'
|
||||
}
|
||||
|
||||
if (process.env.APPVEYOR) {
|
||||
return 'AppVeyor'
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -101,17 +95,6 @@ const getCIBuildUrl = () => {
|
||||
// https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
|
||||
return process.env.CIRCLE_BUILD_URL
|
||||
}
|
||||
|
||||
if (process.env.APPVEYOR) {
|
||||
// https://www.appveyor.com/docs/environment-variables/
|
||||
// there is no single url, but we can form one
|
||||
// looks like this
|
||||
// https://ci.appveyor.com/project/cypress-io/cypress/builds/25882716/job/7iv75s2vjt5w4usf
|
||||
return `${process.env.APPVEYOR_URL}/project/${
|
||||
process.env.APPVEYOR_ACCOUNT_NAME}/${process.env.APPVEYOR_PROJECT_SLUG
|
||||
}/builds/${process.env.APPVEYOR_BUILD_ID
|
||||
}/job/${process.env.APPVEYOR_JOB_ID}`
|
||||
}
|
||||
}
|
||||
|
||||
const seconds = (s) => s * 1000
|
||||
|
||||
Reference in New Issue
Block a user