Skip to content

Commit

Permalink
Configure CI (no. 163)
Browse files Browse the repository at this point in the history
  • Loading branch information
cafour committed Jun 12, 2021
1 parent 7d32fd4 commit cc0cfb7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ci/linux/run.sh
Expand Up @@ -182,6 +182,11 @@ function ensure_named_command {
fi
}

function clean_uitest {
killall Xvfb dotnet chromium chromedriver 2>/dev/null
rm /tmp/.X*-lock 2>/dev/null
}

# =============================
# actual continuous integration
# =============================
Expand Down Expand Up @@ -245,9 +250,7 @@ if [ $JS_TESTS -eq 1 ]; then
fi

if [ $UI_TESTS -eq 1 ]; then
killall Xvfb dotnet 2>/dev/null
killall dotnet 2>/dev/null
rm /tmp/.X*-lock 2>/dev/null
clean_uitest

Xvfb $DISPLAY -screen 0 800x600x16 &
XVFB_PID=$!
Expand Down Expand Up @@ -286,4 +289,5 @@ if [ $UI_TESTS -eq 1 ]; then
--results-directory \"$TEST_RESULTS_DIR\""

kill $XVFB_PID $SAMPLES_PID $SAMPLES_API_PID 2>/dev/null
clean_uitest
fi

0 comments on commit cc0cfb7

Please sign in to comment.