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:
Emily Rohrbough
2021-12-02 14:20:06 -06:00
committed by GitHub
parent f85c736d3e
commit 6b15468579
33 changed files with 864 additions and 1291 deletions

View File

@@ -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