Skip to content

Commit

Permalink
Fix Travis-CI value yes
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Jun 21, 2019
1 parent baf51eb commit b21d0e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions maintainer/CI/build_cmake.sh
Expand Up @@ -58,14 +58,14 @@ function set_default_value {
if [ "${default}" = true -o "${default}" = false ]; then
# cast boolean values to true/false
local -r val=$(echo "${value}" | tr '[:upper:]' '[:lower:]')
if [ "${val}" = false -o "${val}" = "off" -o "${val}" = 0 ]; then
if [ "${val}" = false -o "${val}" = "off" -o "${val}" = 0 -o "${val}" = "no" ]; then
eval "${varname}=false"
elif [ "${val}" = true -o "${val}" = "on" -o "${val}" = 1 ]; then
elif [ "${val}" = true -o "${val}" = "on" -o "${val}" = 1 -o "${val}" = "yes" ]; then
eval "${varname}=true"
elif [ -z "${val}" ]; then
eval "${varname}='${default}'"
else
echo "Cannot cast '${value}' to boolean"
echo "Cannot interpret '${value}' as a true/false value in variable '${varname}'"
exit 1
fi
elif [ -z "${value}" ]; then
Expand Down
4 changes: 2 additions & 2 deletions maintainer/CI/build_docker.sh
Expand Up @@ -6,7 +6,7 @@ cat > $ENV_FILE <<EOF
insource=$insource
cmake_params=$cmake_params
with_fftw=$with_fftw
with_python_interface=yes
with_python_interface=true
with_coverage=$with_coverage
myconfig=$myconfig
check_procs=$check_procs
Expand All @@ -15,7 +15,7 @@ python_version=$python_version
EOF

if [ -z "$image" ]; then
image=ubuntu
image=ubuntu
fi

image=espressomd/espresso-$image:latest
Expand Down

0 comments on commit b21d0e6

Please sign in to comment.