github-desktop/script/test-review.ts
2017-10-19 19:04:47 -04:00

22 lines
436 B
TypeScript

/* eslint-disable no-sync */
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') {
reviewLogs()
}
if (process.platform === 'win32') {
if (process.env.APPVEYOR_TEST_RESULT !== '0') {
reviewLogs()
}
}