Allow tests that require GUI (matplotlib)

This commit is contained in:
Paul Romano 2018-02-01 12:40:54 -06:00
parent ef16a6cb57
commit 07d853dd1d
2 changed files with 5 additions and 0 deletions

View file

@ -24,6 +24,7 @@ env:
- OPENMC_ENDF_DATA=$HOME/endf-b-vii.1
- OPENMC_MULTIPOLE_LIBRARY=$HOME/multipole_lib
- PATH=$PATH:$HOME/NJOY2016/build
- DISPLAY=:99.0
matrix:
- OMP=n MPI=n PHDF5=n
- OMP=y MPI=n PHDF5=n

View file

@ -1,6 +1,10 @@
#!/bin/bash
set -ex
# Allow tests that require GUI as described at:
# https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
sh -e /etc/init.d/xvfb start
# Download NNDC HDF5 data
if [[ ! -e $HOME/nndc_hdf5/cross_sections.xml ]]; then
wget https://anl.box.com/shared/static/a6sw2cep34wlz6b9i9jwiotaqoayxcxt.xz -O - | tar -C $HOME -xvJ