scripts for github actions

This commit is contained in:
edoapra 2022-09-08 19:23:47 -07:00
parent e26eba75b5
commit 50384aa745
No known key found for this signature in database
GPG key ID: E6E392F4E14FB937
4 changed files with 52 additions and 0 deletions

8
travis/cache_fetch.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
ls -Rla ~/cache
[ -d ~/cache/libext ] && rsync -av ~/cache/libext/* src/libext/.
[ -d ~/cache/simint/simint_install/lib ] && \
mkdir -p src/NWints/simint/libsimint_source/simint_install && \
rsync -av ~/cache/simint/simint_install/* src/NWints/simint/libsimint_source/simint_install/. || true
[ -f ~/cache/tarballs/dftd3.tgz ] && rsync -av ~/cache/tarballs/dftd3.tgz src/nwpw/nwpwlib/nwpwxc/dftd3.tgz || true
echo "cache fetched"

14
travis/cache_store.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
mkdir -p ~/apps || true
mkdir -p ~/cache/libext/lib ~/cache/libext/bin ~/cache/libext/include ~/cache/libext/mpich || true
mkdir -p ~/cache/libext/mpich/mpich || true
mkdir -p ~/cache/simint/simint_install || true
mkdir -p ~/cache/tarballs || true
ls -la src/libext ||true
[ -d "src/libext/lib" ] && rsync -av src/libext/lib/* ~/cache/libext/lib/. || true
[ -d "src/libext/bin" ] && rsync -av src/libext/bin/* ~/cache/libext/bin/. || true
[ -d "src/libext/include" ] && rsync -av src/libext/include/* ~/cache/libext/include/. || true
[ -d "src/NWints/simint/libsimint_source/simint_install/lib" ] && rsync -av src/NWints/simint/libsimint_source/simint_install/* ~/cache/simint/simint_install/. || true
[ -f "src/nwpw/nwpwlib/nwpwxc/dftd3.tgz" ] && rsync -av src/nwpw/nwpwlib/nwpwxc/dftd3.tgz ~/cache/tarballs/dftd3.tgz || true
echo "cache stored"
ls -Rla ~/cache

26
travis/check_qas.sh Executable file
View file

@ -0,0 +1,26 @@
#!/bin/bash
# echo "The steps context is:"
# echo "${{ toJson(steps) }}"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!"
if [[ -f QA/testoutputs/dft_he2+.out ]]; then \
grep d= QA/testoutputs/dft_he2+.out || true ; fi
if [[ -f QA/testoutputs/h2o_opt.out ]]; then \
grep @ QA/testoutputs/h2o_opt.out || true ; fi
if [[ -f QA/testoutputs/h2o2-response.out ]]; then \
tail -490 QA/testoutputs/h2o2-response.out || true; fi
if [[ -f QA/testoutputs/prop_mep_gcube.out ]]; then \
tail -30 QA/testoutputs/prop_mep_gcube.out || true; fi
if [[ -f QA/testoutputs/pspw.out ]]; then \
tail -490 QA/testoutputs/pspw.out || true; fi
if [[ -f QA/testoutputs/dft_smear.out ]]; then \
grep @ QA/testoutputs/dft_smear.out || true; fi
if [[ -f QA/testoutputs/dft_smear.out ]]; then \
egrep d= QA/testoutputs/dft_smear.out || true; fi
if [[ -f QA/testoutputs/dft_smear.out ]]; then \
tail -2000 QA/testoutputs/dft_smear.out || true; fi
if [[ -f QA/testoutputs/ritddft_h2o.out ]]; then \
tail -2000 QA/testoutputs/ritddft_h2o.out || true; fi
if [[ -f QA/testoutputs/ritddft_co.out ]]; then \
tail -2000 QA/testoutputs/ritddft_co.out || true; fi
if [[ -f QA/testoutputs/pspw_md.out ]]; then \
grep 'PSPW energy' QA/testoutputs/pspw_md.out || true; fi

4
travis/compile_check.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
cat src/tools/build/config.log || true
cat src/tools/build/comex/config.log || true
tail -100 64log || true