mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-06 06:29:45 -06:00
* use arch when caching dependencies on Circle * add mac job * hmm, mac name * executor name * use circle v2.1 * circle 2.1 cannot have job names start with a digit * hmm, separate mac workflow * shared build job via executor * allow Node version mismatch on CircleCI Mac build * correct workflow names per os * do not check TERM on darwin platform * move terminal check into a node script * lint on both mac and linux * pass linter * enable full linux workflow * try building on mac * use xcode with Node 8.x * try mac 9.1.0 * xcode 9.0.1 * run prebuild serially * add node sass rebuild to desktop gui * build on mac platform * print identity on mac * disable Mac workflow for now
15 lines
570 B
JavaScript
15 lines
570 B
JavaScript
// checks if the terminal has all the variables set (especially on Linux Docker)
|
|
|
|
const assert = require('assert')
|
|
const isLinux = process.platform === 'linux'
|
|
|
|
if (isLinux) {
|
|
assert.ok(process.env.TERM === 'xterm', `process.env.TERM=${process.env.TERM} and must be set to "xterm" for Docker to work`)
|
|
}
|
|
|
|
assert.ok(process.env.COLUMNS === '100', `process.env.COLUMNS=${process.env.COLUMNS} must be set to 100 for snapshots to pass`)
|
|
|
|
/* eslint-disable no-console */
|
|
console.log('stdout.isTTY?', process.stdout.isTTY)
|
|
console.log('stderr.isTTY?', process.stderr.isTTY)
|