github-desktop/script/test-review.ts

23 lines
436 B
TypeScript
Raw Normal View History

2017-10-19 23:04:47 +00:00
/* eslint-disable no-sync */
2017-07-26 19:02:31 +00:00
import * as fs from 'fs'
import { getLogFiles } from './review-logs'
function reviewLogs() {
getLogFiles().forEach(file => {
console.log(`opening ${file}:`)
const text = fs.readFileSync(file, 'utf-8')
console.log(text)
})
}
if (process.platform === 'darwin') {
2017-09-12 12:30:03 +00:00
reviewLogs()
}
if (process.platform === 'win32') {
if (process.env.APPVEYOR_TEST_RESULT !== '0') {
reviewLogs()
}
}