#!/bin/bash

set -e

i=0
files=""

TEST_NSES=$(find test -name "*.clj" |sed s/test\\///|sed s/\\//\\./g|sed s/".clj$"//|sed s/"_"/"-"/g|tr '\n' ' '|sort)

echo "Testing " $TEST_NSES

for file in $TEST_NSES
do
  if [ $(($i % $CIRCLE_NODE_TOTAL)) -eq $CIRCLE_NODE_INDEX ]
  then
    files+=" $file"
  fi
  ((++i))
done

export TEST_TRANSPORT_IMPL=$1 
lein with-profile dev,circle-ci midje $files

#!/bin/bash

set -e

if [ $CIRCLE_BRANCH == "master" ]; then
	export TEST_CHECK_FACTOR=20
fi


i=0
files=""

TEST_NSES=$(find test -name "*.clj" |sed s/test\\///|sed s/\\//\\./g|sed s/".clj$"//|sed s/"_"/"-"/g|tr '\n' ' '|sort)

echo "Testing " $TEST_NSES

for file in $TEST_NSES
do
  if [ $(($i % $CIRCLE_NODE_TOTAL)) -eq $CIRCLE_NODE_INDEX ]
  then
    files+=" $file"
  fi
  ((++i))
done

export TEST_TRANSPORT_IMPL=$1 
lein with-profile dev,circle-ci midje $files

Increase the number of test check tests for master.
Increase the number of test check tests for master.
