Skip to content

Commit a2e715a

Browse files
committed
MAGETWO-63512: Travis build failures because the job exceeded the maximum time limit for jobs
1 parent 7647dce commit a2e715a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

dev/travis/before_script.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ case $TEST_SUITE in
1212
cd dev/tests/integration
1313

1414
test_set_list=$(find testsuite/* -maxdepth 1 -mindepth 1 -type d | sort)
15-
test_set_size=$(($(printf "$test_set_list" | wc -l)/INTEGRATION_SETS))
15+
test_set_count=$(printf "$test_set_list" | wc -l)
16+
test_set_size[1]=$(printf "%.0f" $(echo "$test_set_count*0.15" | bc))
17+
test_set_size[2]=$(printf "%.0f" $(echo "$test_set_count*0.3" | bc))
18+
test_set_size[3]=$(printf "%.0f" $(echo "$test_set_count*0.55" | bc))
1619

17-
echo "==> preparing integration testsuite on index $INTEGRATION_INDEX with set size of $test_set_size"
20+
echo "==> preparing integration testsuite on index $INTEGRATION_INDEX with set size of ${test_set_size[$INTEGRATION_INDEX]}"
1821
cp phpunit.xml.dist phpunit.xml
1922

2023
# remove memory usage tests if from any set other than the first
@@ -35,7 +38,7 @@ case $TEST_SUITE in
3538
fi
3639

3740
i=$((i+1))
38-
if [ $i -eq $test_set_size ] && [ $j -lt $INTEGRATION_SETS ]; then
41+
if [ $i -eq ${test_set_size[$j]} ] && [ $j -lt $INTEGRATION_SETS ]; then
3942
j=$((j+1))
4043
i=0
4144
fi

0 commit comments

Comments
 (0)