Files
cypress/scripts/check-terminal.js
Gleb Bahmutov b5b41febf1 Build osx on circle 2958 (#2978)
* 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
2018-12-21 16:43:47 -05:00

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)