Skip to content

Commit

Permalink
fix: fixed yarn mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 2, 2018
1 parent d2b5c5c commit 43335e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const path = require('path')
const sh = require('shelljs')
const npmPath = require('npm-run-path')
const tmp = require('tmp')
const os = require('os')

sh.set('-ev')

Expand All @@ -11,7 +12,7 @@ const {CI} = process.env
delete process.env.CI
process.env.ANYCLI_DEBUG = '1'

process.env.YARN_MUTEX = `file:${tmp.tmpNameSync()}`
process.env.YARN_MUTEX = `file:${path.join(os.tmpdir(), 'yarn.mutex')}`

function generate(args) {
const run = path.join(__dirname, '../bin/run')
Expand Down Expand Up @@ -41,7 +42,7 @@ module.exports = file => {

describe(cmd, () => {
fancy
.retries(CI ? 2 : 0)
.retries(CI ? 1 : 0)
.do(() => {
switch (cmd) {
case 'base':
Expand Down

0 comments on commit 43335e9

Please sign in to comment.