diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..21687c9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,51 @@ +language: generic + +sudo: false + +cache: + apt: true + pip: true + directories: + - $HOME/.cache/pip + - $HOME/.local + +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gfortran-6 + - binutils + - python-pip + +env: + global: + - RUNALL="scripts/run_all_gnu_optimized.sh" + +before_install: + - git submodule update --init --recursive + +install: + - | + if [[ ! -d "$HOME/.local/bin" ]]; then + mkdir "$HOME/.local/bin" + fi + - export PATH="$HOME/.local/bin:$PATH" + - export FC=/usr/bin/gfortran-6 + - ln -fs /usr/bin/gfortran-6 "$HOME/.local/bin/gfortran" && gfortran --version + - ls -l /usr/bin/gfortran-6 + - ln -fs /usr/bin/gcov-6 "$HOME/.local/bin/gcov" && gcov --version + +script: + - $RUNALL + +deploy: + provider: releases + api_key: + secure: 3YGg6TUgjWyn/ExsSJNCUiEmIBXjLgffeKYwzc6CB+3FOPUU60n5IoVATw2JNwseQfGaQgzNqv4J1xhvDVxc1bkJeH8usKF9dmsCXgI0tSMjEVer6qqt1rcT9lbaSav44uNWhC8OH6Y3b5gIZpxFyGkooWURZ0rEAVQWyDByEcQnoLhiPx4SVd+hvRaP56WUIu3uWUIBk8EOO4WGO7Og5IPJ9NwVuNQixQAp/iZ9ckld0t6hoSVdqWZjxprBkKwkeGAZjyhPWx2BsBv1/Xnf0AZ6QwG5uB3mv7md9aLLcepqySxyeiDsmJerjys+odlbnKw1eziXmtLPC1OWYeswP+mcF3o5reXA1VN9TOlPQxjWAbp+cLt90YJ+jJeP7b1fae+YjSeIGxryz9KWCRmD7cR2qiNmeLhQixrltIB7pay31cHecm2+gVCsRRU9lr68qKeC7Uj4i70tPl/jJNNu/HUeGttCfupQEiCe9Rae5APv/rmAPRmfvlkCX0C7jW6cDqINaha3Nvxr3zZ+p0a9FMaozcY+5589O2dnqQc+pfmPTtYPtH4yS9K+ijs1tNJoKWOqSlb8pqOG7BeTcNNiiW5E2eWA9esWofp0IvSArAxVrtsVJZU96Cbs+zFlQmBq0zBcoRrpFxvCX9tYji30VWXo5JjK28XEsTOU7g5uYwI= + file: + - DEFY-travis-tests.tar.gz + skip_cleanup: true + overwrite: true + on: + tags: true diff --git a/scripts/run_all_gnu_optimized.sh b/scripts/run_all_gnu_optimized.sh new file mode 100755 index 0000000..6aa9d0b --- /dev/null +++ b/scripts/run_all_gnu_optimized.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# script to build and run all DEFY tests. +# +# License: this file is licensed under the Creative Commons Attribution 4.0 license, +# see http://creativecommons.org/licenses/by/4.0/ . + +for e in $( find ./src/ -type f -executable -print | grep run_gnu_optimized); do + here=$(pwd) + dir=$(dirname $e) + bdir=$(basename $dir) + exe=$(basename $e) + echo $bdir + cd $dir + ./$exe > $here/$bdir.log + cd - +done +cat /proc/cpuinfo > cpu.log +cat /proc/meminfo > mem.log +uname -a > os.log +tar --xform="s%^%DEFY-travis-tests/%" -czf DEFY-travis-tests.tar.gz *.log +rm -f *.log +exit 0 diff --git a/src/goto_is_fastest/goto_if_select_comparison_2/run_gnu.sh b/src/goto_is_fastest/goto_if_select_comparison_2/run_gnu.sh deleted file mode 100755 index 3b241aa..0000000 --- a/src/goto_is_fastest/goto_if_select_comparison_2/run_gnu.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# script to build and run DEFY tests. -# -# License: this file is licensed under the Creative Commons Attribution 4.0 license, -# see http://creativecommons.org/licenses/by/4.0/ . - -test=$(basename $(pwd))/defy.f90 -echo "Build and run $test by means of 'gfortran -Og'" -gfortran -Og defy.f90 -o defy -./defy -rm -f defy *.mod *.o diff --git a/src/goto_is_fastest/goto_if_select_comparison_2/run_gnu_optimized.sh b/src/goto_is_fastest/goto_if_select_comparison_2/run_gnu_optimized.sh deleted file mode 100755 index c293122..0000000 --- a/src/goto_is_fastest/goto_if_select_comparison_2/run_gnu_optimized.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# script to build and run DEFY tests. -# -# License: this file is licensed under the Creative Commons Attribution 4.0 license, -# see http://creativecommons.org/licenses/by/4.0/ . - -test=$(basename $(pwd))/defy.f90 -echo "Build and run $test by means of 'gfortran -O3'" -gfortran -O3 defy.f90 -o defy -./defy -rm -f defy *.mod *.o