cleanup: remove jenkins and autotools relatex content.

parent 60746ad3
Pipeline #3440 canceled with stages
in 9 minutes and 24 seconds
......@@ -16,8 +16,8 @@ means, the user's guide can always be found on the ESPResSo-Homepage at
http://espressomd.org/html/doc/
QUICK START - CMake (Recommended)
---------------------------------
QUICK START
-----------
The recommended way is to build by the cmake tool.
CMake recommends to build in a build directory not inside the
source. On Linux you can create and enter directory in a location
......@@ -38,27 +38,7 @@ and modify the build options graphically by running
When these steps have completed successfully, you can run Espresso with
help of the command
> ./Espresso
QUICK START - Autotools (Deprecated)
------------------------------------
In most cases, once you have obtained the sources, compiling and
running ESPResSo requires only two steps:
> ./configure
> make
If you have the development sources (obtained from out git source code
repository), you first have to execute
> ./bootstrap.sh
to generate the required configure script.
When these steps have completed successfully, you can run Espresso with
help of the command
> ./Espresso
> ./pypresso
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
......
#!/bin/bash
echo The autotools-based build system has been removed. Please use cmake instead.
echo See the user\'s guide for instructions.
......@@ -19,12 +19,11 @@
git ls-files --exclude-standard |
egrep -v '\.(blk|gz|data|dat|tab|chk|jpg|png|pdf|fig|gif|xcf|bib|vtf|vtk|svg|ico|eps)$' |
egrep -v '^testsuite/configs/|^old/|^cmake/|^config/' |
egrep -v '(ChangeLog|AUTHORS|COPYING|NEWS|README|INSTALL|bootstrap\.sh)' |
egrep -v '(ChangeLog|AUTHORS|COPYING|NEWS|README|INSTALL)' |
egrep -v '(\.gitignore|pkgIndex\.tcl)' |
egrep -v '(config/config\.guess|config/config\.sub|config/install-sh|config/myconfig-sample-header\.hpp\.in)' |
egrep -v '(Doxyfile|latexmk\.1|latexmkrc|assemble_quickref\.awk|doc/misc/homepage/palette\.html)' |
egrep -v '(src/features\.def)' |
egrep -v '(doc/ug/ug-dist\.tex)' |
egrep -v '(featurelist)' |
egrep -v '(\.cproject|\.project|\.settings)' |
egrep -v '(maintainer/jenkins|samples/games/highscore.txt)'
egrep -v '(\.cproject|\.project|\.settings)'
#!/bin/bash --login
# Copyright (C) 2013 Olaf Lenz
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
DIR=`dirname $0`
source $DIR/common.sh
start "BOOTSTRAP"
pushd $srcdir
./bootstrap.sh || exit $?
popd
end "BOOTSTRAP"
#!/bin/bash --login
# Copyright (C) 2013 Olaf Lenz
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
DIR=`dirname $0`
source $DIR/common.sh
start "BUILD"
# DEFAULTS
[ -z "$myconfig" ] && myconfig="default"
[ -z "$build_procs" ] && build_procs=4
[ -z "$make_params" ] && make_params=""
make_params="-j $build_procs $make_params"
outp myconfig build_procs
# change into build dir
pushd $builddir
# BUILD
if [ "$myconfig" = "default" ]; then
echo "Using default myconfig."
if [ -e $builddir/myconfig.hpp ]; then
echo "Deleting $builddir/myconfig.hpp..."
rm $builddir/myconfig.hpp
fi
else
myconfig_file=$srcdir/maintainer/configs/$myconfig.hpp
if [ ! -e "$myconfig_file" ]; then
echo "$myconfig_file does not exist!"
exit 1
fi
echo "Copying $myconfig.hpp to $builddir/myconfig.hpp..."
cp $myconfig_file $builddir/myconfig.hpp
fi
cmd "make $make_params" || exit $?
popd
end "BUILD"
#!/usr/bin/env bash
# Copyright (C) 2016 The ESPResSo project
# Copyright (C) 2014 Olaf Lenz
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
# HELPER FUNCTIONS
# output value of env variables
function outp {
for p in $*; do
echo " $p=${!p}"
done
}
# start a block
function start {
echo "=================================================="
echo "START $1"
echo "=================================================="
}
# end a block
function end {
echo "=================================================="
echo "END $1"
echo "=================================================="
}
# execute and output a command
function cmd {
echo ">$1"
eval $1
}
# handle environment variables
[ -z "$srcdir" ] && srcdir=`pwd`
[ -z "$cmake_params" ] && configure_params=""
[ -z "$with_fftw" ] && with_fftw="true"
[ -z "$with_tcl" ] && with_tcl="true"
[ -z "$with_python_interface" ] && with_python_interface="true"
[ -z "$myconfig" ] && myconfig="default"
[ -z "$check_procs" ] && check_procs=2
[ -z "$make_check" ] && make_check="true"
[ -z "$make_params" ] && make_params=""
builddir=$srcdir/build
outp insource srcdir builddir \
cmake_params with_fftw \
with_tcl with_python_interface myconfig check_procs make_check make_params
# check indentation of python files
pep8 --filename=*.pyx,*.pxd,*.py --select=E111 $srcdir/src/python/espressomd/
ec=$?
if [ $ec -eq 0 ]; then
echo ""
echo "Indentation in Python files correct..."
echo ""
else
echo ""
echo "Error: Python files are not indented the right way. Please use 4 spaces per indentation level!"
echo ""
exit $ec
fi
# Make build dir exist.
if [ ! -d $builddir ]; then
echo "Creating $builddir..."
mkdir -p $builddir
fi
cd $builddir
start "CMAKE"
if $with_fftw; then
cmake_params="$cmake_params"
else
cmake_params="-DCMAKE_DISABLE_FIND_PACKAGE_FFTW3=ON $cmake_params"
fi
if $with_tcl; then
cmake_params="-DWITH_TCL=ON $cmake_params"
else
cmake_params="-DWITH_TCL=OFF $cmake_params"
fi
if $with_python_interface; then
cmake_params="-DWITH_PYTHON=ON $cmake_params"
else
cmake_params="-DWITH_PYTHON=OFF $cmake_params"
fi
MYCONFIG_DIR=$srcdir/maintainer/configs
if [ "$myconfig" = "default" ]; then
echo "Using default myconfig."
else
myconfig_file=$MYCONFIG_DIR/$myconfig.hpp
if [ ! -e "$myconfig_file" ]; then
echo "$myconfig_file does not exist!"
exit 1
fi
echo "Copying $myconfig.hpp to $builddir/myconfig.hpp..."
cp $myconfig_file $builddir/myconfig.hpp
fi
cmd "cmake $cmake_params $srcdir" || exit $?
end "CMAKE"
# BUILD
start "BUILD"
cmd "make $make_params" || exit $?
end "BUILD"
if $make_check; then
start "TEST"
make -k check
ec=$?
echo "make check returned $ec"
# Did any test fail?
if [ $ec -ne 0 ]; then
echo "Checking for test logs."
TCL_LOG="$builddir/testsuite/tcl/Testing/Temporary/LastTest.log"
PYTHON_LOG="$builddir/testsuite/python/Testing/Temporary/LastTest.log"
UNIT_LOG="$builddir/testsuite/src/core/unit_tests/Testing/Temporary/LastTest.log"
for LOG in $TCL_LOG $PYTHON_LOG $UNIT_LOG; do
echo $LOG
if [ -f $LOG ]; then
cat $LOG;
fi
done
exit $ec
fi
end "TEST"
fi
#!/bin/bash --login
# Copyright (C) 2013 Olaf Lenz
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
DIR=`dirname $0`
source $DIR/common.sh
start "TEST"
[ -z "$with_mpi" ] && with_mpi="true"
! $with_mpi && check_procs=1
[ -z "$with_cuda" ] && with_cuda="true"
[ -z "$check_procs" ] && check_procs=4
outp with_mpi with_cuda check_procs
$with_cuda && export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
# change into build dir
pushd $builddir
[ "$check_procs" != "1" ] && make_params="processors=\"$check_procs\""
# something should be done after ||, otherwise Jenkins will mark
# job as failed
cmd "make check $make_params" || CHECK_UNSTABLE=1
popd
end "TEST"
#!/usr/bin/python
from __future__ import print_function
import sys
import os
import subprocess
# Test for precious files in commit
current_commit = os.environ["GIT_COMMIT"]
if "GIT_PREVIOUS_COMMIT" in os.environ:
prev_commit = os.environ["GIT_PREVIOUS_COMMIT"]
refspec = "{}..{}".format(current_commit, prev_commit)
else:
refspec = current_commit
gitout = subprocess.check_output(["git", "diff", "--name-only", refspec])
files = gitout.split()
warnings = []
for fname in files:
if fname.startswith('maintainer/') or \
fname == "src/myconfig-default.hpp":
print("check_maintainer.py: Precious file was modified: {}".format(fname))
# Copyright (C) 2013 Olaf Lenz
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
if ((`ps -o nice= $$` < 5)); then
renice -n 5 $$
fi
function start() {
echo "START $1"
}
function end() {
echo "END $1"
}
function cmd() {
echo ">$1"
eval $1
}
function outp() {
for p in $*; do
echo " $p=${!p}"
done
}
# DIR SETTINGS
[ -z "$insource" ] && insource="true"
[ -z "$srcdir" ] && srcdir=`pwd`
if $insource; then
builddir=$srcdir
elif [ -z "$builddir" ]; then
builddir=$srcdir/build
fi
outp srcdir builddir insource
if [ ! -e $srcdir/configure.ac ]; then
echo "Could not find configure.ac in $srcdir!"
exit 1
fi
if ! $insource; then
if [ ! -d $builddir ]; then
echo "Creating $builddir..."
mkdir -p $builddir
fi
fi
# PARALLELISM SETTINGS
if [ -n "$parallelism" ]; then
outp parallelism
case $parallelism in
("34core")
with_mpi=true
check_procs="3 4"
;;
("3core")
with_mpi=true
check_procs=3
;;
("4core")
with_mpi=true
check_procs=4
;;
("nompi")
with_mpi=false
;;
esac
fi
#!/bin/bash --login
# Copyright (C) 2013 Olaf Lenz,
# Copyright (C) 2014, 2015 The Espresso Project
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
DIR=`dirname $0`
source $DIR/common.sh
start "CONFIGURE"
# DEFAULTS
[ -z "$configure_params" ] && configure_params=""
[ -z "$configure_vars" ] && configure_vars=""
[ -z "$with_cuda" ] && with_cuda="true"
[ -z "$with_mpi" ] && with_mpi="true"
[ -z "$with_fftw" ] && with_fftw="true"
[ -z "$with_tcl" ] && with_tcl="true"
[ -z "$with_python_interface" ] && with_python_interface="false"
[ -z "$with_h5md" ] && with_h5md="true"
outp configure_params configure_vars with_cuda with_mpi with_fftw \
with_tcl with_python_interface with_h5md
# change into build dir
pushd $builddir
# set up configure params
configure_params="--enable-silent-rules $configure_params"
if $with_mpi; then
configure_params="--with-mpi $configure_params"
else
configure_params="--without-mpi $configure_params"
fi
if $with_h5md; then
configure_params="--with-h5md $configure_params"
else
configure_params="--without-h5md $configure_params"
fi
CUDA_HEADER=$srcdir/src/cuda.h
if $with_cuda; then
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
configure_params="--with-cuda $configure_params"
if [ -e $CUDA_HEADER ]; then
echo "Using CUDA => deleting mock $CUDA_HEADER..."
rm $CUDA_HEADER
fi
else
configure_params="--without-cuda $configure_params"
configure_vars="$configure_vars NVCC=/bin/false"
echo "Not using CUDA => generating mock $CUDA_HEADER..."
echo "#error ERROR: cuda is not really present but used somewhere." \
> $CUDA_HEADER
fi
FFTW_HEADER=$srcdir/src/fftw3.h
if $with_fftw; then
configure_params="--with-fftw $configure_params"
if [ -e $FFTW_HEADER ]; then
echo "Using FFTW => deleting mock $FFTW_HEADER..."
rm $FFTW_HEADER
fi
else
configure_params="--without-fftw $configure_params"
echo "Not using FFTW => generating mock $FFTW_HEADER..."
echo "#error ERROR: fftw is not really present but used somewhere." \
> $FFTW_HEADER
fi
if $with_tcl; then
configure_params="--with-tcl $configure_params"
else
configure_params="--without-tcl $configure_params"
fi
if $with_python_interface; then
configure_params="--with-python-interface $configure_params"
else
configure_params="--without-python-interface $configure_params"
fi
cmd "$srcdir/configure $configure_params $configure_vars" || exit $?
end "CONFIGURE"
popd
#!/bin/bash --login
# Copyright (C) 2013 Olaf Lenz
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
DIR=`dirname $0`
source $DIR/common.sh
start "DIST"
pushd $builddir
# DIST
cmd "make dist dist-xz" || exit $?
popd
end "DIST"
#!/bin/bash --login
# Copyright (C) 2013 Olaf Lenz
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
DIR=`dirname $0`
source $DIR/common.sh
# DEFAULTS
[ ! -v distcheck_flags ] && distcheck_flags=""
outp distcheck_flags
# change into build dir
pushd $builddir
start "DISTCHECK"
cmd "make distcheck DISTCHECK_CONFIGURE_FLAGS=\"$distcheck_flags\"" || exit $?
end "DISTCHECK"
popd
#!/bin/bash --login
# Copyright (C) 2013 Olaf Lenz
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
DIR=`dirname $0`
source $DIR/common.sh
# change into build dir
pushd $builddir
start "DOC"
cmd "make doc" || exit $?
end "DOC"
popd
#!/bin/bash --login
# Copyright (C) 2015 Florian Weik
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
DIR=`dirname $0`
source $DIR/common.sh
$DIR/../../Espresso $DIR/scripts/lj_performance.tcl
paste -d ',' lj_performance.txt > performance.txt
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment