Skip to content

Commit

Permalink
Merge pull request #533 from muupan/fix-flexci-monitor-test
Browse files Browse the repository at this point in the history
Make test_monitor.py work on flexCI
  • Loading branch information
toslunar authored Aug 26, 2019
2 parents 8165bf4 + cbcd554 commit 2e1a034
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .pfnci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,19 @@ main() {
--hint="/chainerrl/.pfnci/hint.pbtxt"
)

UBUNTU_VERSION_ID=$(grep DISTRIB_RELEASE /etc/lsb-release | cut -d "=" -f2)
if [ "$UBUNTU_VERSION_ID" = "16.04" ]; then
# Because ffmpeg of ubuntu 16.04 causes segmentation fault,
# we use jonathonf/ffmpeg-3
apt-get update -q
apt-get install -qy --no-install-recommends software-properties-common
add-apt-repository ppa:jonathonf/ffmpeg-3
fi

apt-get update -q
apt-get install -qy --no-install-recommends \
"${PYTHON}-dev" "${PYTHON}-pip" "${PYTHON}-setuptools" \
zlib1g-dev make cmake g++ git
zlib1g-dev make cmake g++ git ffmpeg freeglut3-dev xvfb

if [ "${CHAINER}" != '' ]; then
"${PYTHON}" -m pip install "chainer==${CHAINER}"
Expand All @@ -77,7 +86,10 @@ main() {
git config --global user.email "you@example.com"
git config --global user.name "Your Name"

# Xvfb's default screen is 1280x1024x8, which seems to cause a problem.
# https://bugzilla.redhat.com/show_bug.cgi?id=904851
OMP_NUM_THREADS=1 PYTHONHASHSEED=0 \
xvfb-run --server-args="-screen 0 1280x800x24" \
xpytest "${xpytest_args[@]}" '/chainerrl/tests/**/test_*.py'
}

Expand Down

0 comments on commit 2e1a034

Please sign in to comment.