Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .conda/bin/jenkins-server-customization
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This Bash script must be sourced, not executed
# Customizations required for the server that currently runs Jenkins

conda install --yes mpi4py tensorflow
module unload gcc
28 changes: 13 additions & 15 deletions pr-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,27 +116,25 @@ python3 -m pip install -U "pip<10" || \
python3 -m pip install $ignore_installed -U -e . || \
exit_with_error_and_venv "Failed to install BrainIAK."

# Allow installation on OSes we do not formally support by installing packages
# with unmet non-PyPI dependencies with Conda. This option is not supported and
# should not be documented in user docs. In particular we use it on our CentOS
# 6 Jenkins server for Tensorflow, which requires glibc >= 2.17.
conda_override=$1
if [ ${conda_override:-default} = "--conda-override" ]
# install developer dependencies
python3 -m pip install $ignore_installed -U -r requirements-dev.txt || \
exit_with_error_and_venv "Failed to install development requirements."

# Source a user-specified Bash script to customize the installation.
# This option is not supported and should not be documented in user docs.
# In particular we use it on our CentOS 6 Jenkins server with .conda/bin/
customization_script_flag=$1
if [ ${customization_script_flag:-default} = "--customization-script" ]
then
conda_override_packages=$2
if [ ${conda_override_packages:-default} = "default" ]
customization_script=$2
if [ ${customization_script:-default} = "default" ]
then
exit_with_error_and_venv "Missing Conda override package list"
exit_with_error_and_venv "Must specify customization script"
else
echo $conda_override_packages | tr , " " | xargs conda install --yes
source $customization_script
fi
fi


# install developer dependencies
python3 -m pip install $ignore_installed -U -r requirements-dev.txt || \
exit_with_error_and_venv "Failed to install development requirements."

# static analysis
./run-checks.sh || \
exit_with_error_and_venv "run-checks failed"
Expand Down
6 changes: 3 additions & 3 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ python3 -m pip freeze | grep -qi /brainiak \
# If removing, also remove from .conda/*
export MKL_THREADING_LAYER=GNU

mpi_command=mpiexec
if [ ! -z $SLURM_NODELIST ]
mpi_command=$BRAINIAKDEV_MPI_COMMAND
if [ -z $mpi_command ]
then
mpi_command=srun
mpi_command=mpiexec
fi
$mpi_command -n 2 coverage run -m pytest

Expand Down