File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,19 @@ main() {
5454 --hint=" /chainerrl/.pfnci/hint.pbtxt"
5555 )
5656
57+ UBUNTU_VERSION_ID=$( grep DISTRIB_RELEASE /etc/lsb-release | cut -d " =" -f2)
58+ if [ " $UBUNTU_VERSION_ID " = " 16.04" ]; then
59+ # Because ffmpeg of ubuntu 16.04 causes segmentation fault,
60+ # we use jonathonf/ffmpeg-3
61+ apt-get update -q
62+ apt-get install -qy --no-install-recommends software-properties-common
63+ add-apt-repository ppa:jonathonf/ffmpeg-3
64+ fi
65+
5766 apt-get update -q
5867 apt-get install -qy --no-install-recommends \
5968 " ${PYTHON} -dev" " ${PYTHON} -pip" " ${PYTHON} -setuptools" \
60- zlib1g-dev make cmake g++ git
69+ zlib1g-dev make cmake g++ git ffmpeg freeglut3-dev xvfb
6170
6271 if [ " ${CHAINER} " != ' ' ]; then
6372 " ${PYTHON} " -m pip install " chainer==${CHAINER} "
@@ -77,7 +86,10 @@ main() {
7786 git config --global user.email " you@example.com"
7887 git config --global user.name " Your Name"
7988
89+ # Xvfb's default screen is 1280x1024x8, which seems to cause a problem.
90+ # https://bugzilla.redhat.com/show_bug.cgi?id=904851
8091 OMP_NUM_THREADS=1 PYTHONHASHSEED=0 \
92+ xvfb-run --server-args=" -screen 0 1280x800x24" \
8193 xpytest " ${xpytest_args[@]} " ' /chainerrl/tests/**/test_*.py'
8294}
8395
You can’t perform that action at this time.
0 commit comments