2017-12-14 15:03:39 +07:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -ex
|
|
|
|
|
|
2018-02-01 12:40:54 -06:00
|
|
|
# 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
|
|
|
|
|
|
2017-12-14 16:42:24 +07:00
|
|
|
# Download NNDC HDF5 data
|
|
|
|
|
if [[ ! -e $HOME/nndc_hdf5/cross_sections.xml ]]; then
|
2018-07-04 20:57:29 -05:00
|
|
|
wget https://anl.box.com/shared/static/na85do11dfh0lb9utye2il5o6yaxx8hi.xz -O - | tar -C $HOME -xvJ
|
2017-12-14 16:42:24 +07:00
|
|
|
fi
|
2017-12-14 15:03:39 +07:00
|
|
|
|
2017-12-14 16:42:24 +07:00
|
|
|
# Download ENDF/B-VII.1 distribution
|
2018-07-04 20:57:29 -05:00
|
|
|
ENDF=$HOME/endf-b-vii.1/
|
|
|
|
|
if [[ ! -d $ENDF/neutrons || ! -d $ENDF/photoat || ! -d $ENDF/atomic_relax ]]; then
|
2017-12-14 16:42:24 +07:00
|
|
|
wget https://anl.box.com/shared/static/4kd2gxnf4gtk4w1c8eua5fsua22kvgjb.xz -O - | tar -C $HOME -xvJ
|
2017-12-14 15:03:39 +07:00
|
|
|
fi
|
2017-12-14 16:42:24 +07:00
|
|
|
|
|
|
|
|
# Download multipole library
|
|
|
|
|
git clone --branch=master git://github.com/smharper/windowed_multipole_library.git wmp_lib
|
|
|
|
|
tar -C $HOME -xzvf wmp_lib/multipole_lib.tar.gz
|