Skip to content

Commit

Permalink
Fix Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Dec 29, 2018
1 parent 652a022 commit 001c800
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/helpers/cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict'

const { platform } = require('process')

const execa = require('execa')
const isCi = require('is-ci')

Expand All @@ -8,8 +10,9 @@ const BINARY_PATH = `${__dirname}/../../localpack/bin/unix_permissions.js`
// Test that CLI output and exit code is same as programmatic output and
// exception throwing
const testCli = async function({ t, output, error, command, args }) {
// We only run this in CI because it's slow
if (!isCi || !args.some(isValidCliArgument)) {
// We only run this in CI because it's slow.
// Windows somehow freezes in CI.
if (!isCi || platform === 'win32' || !args.some(isValidCliArgument)) {
return
}

Expand Down

0 comments on commit 001c800

Please sign in to comment.