Permalink
Browse files

docker: Update toolchain before running tests.

git-svn-id: svn://svn.code.sf.net/p/cp2k/code/trunk@18542 bac0169d-1eea-4375-b5f6-f89d2ced9994
  • Loading branch information...
oschuett committed Jul 22, 2018
1 parent 43469e9 commit 554fd37638f212db2a5c27e66d96106c389ce1c8
Showing with 16 additions and 2 deletions.
  1. +2 −2 cp2k/tools/docker/regtest/Dockerfile
  2. +14 −0 cp2k/tools/docker/regtest/cmd.sh
@@ -4,8 +4,8 @@ FROM cp2k/toolchain:latest
# download and compile cp2k snapshot
WORKDIR /opt/
RUN wget -O cp2k-master.zip https://github.com/cp2k/cp2k/archive/master.zip && \
unzip cp2k-master.zip && \
RUN wget -q -O cp2k-master.zip https://github.com/cp2k/cp2k/archive/master.zip && \
unzip -q cp2k-master.zip && \
rm cp2k-master.zip
WORKDIR /opt/cp2k-master/cp2k/arch
@@ -17,6 +17,20 @@ rsync --exclude="*~" \
--checksum \
/opt/cp2k-local/ /opt/cp2k-master/
rsync --exclude="*~" \
--exclude=".*/" \
--exclude="*.pyc" \
--ignore-times \
--update \
--verbose \
--recursive \
--checksum \
/opt/cp2k-local/cp2k/tools/toolchain/ /opt/cp2k-toolchain/
echo -e "\n========== Updating Toolchain =========="
cd /opt/cp2k-toolchain/
./install_cp2k_toolchain.sh --install-all --with-make=no
echo -e "\n========== Running Regtests =========="
source /opt/cp2k-toolchain/install/setup
cd /opt/cp2k-master/cp2k/makefiles

0 comments on commit 554fd37

Please sign in to comment.