Skip to content

Commit

Permalink
add lsf.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
raybellwaves committed Jul 4, 2018
1 parent 870d0f3 commit 7e673a4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions ci/lsf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

#!/usr/bin/env bash

set -x

function jobqueue_before_install {
docker version
docker-compose version

# start slurm cluster
cd ./ci/lsf
./start-lsf.sh
cd -

docker ps -a
docker images
}

function jobqueue_install {
docker exec -it lsf_master /bin/bash -c "cd /dask-jobqueue; python setup.py install"
}

function jobqueue_script {
docker exec -it -u lsfuser lsf_master /bin/bash -c "cd /dask-jobqueue; py.test dask_jobqueue --verbose -E lsf"
}

function jobqueue_after_script {
docker exec -it lsf_master bash -c 'cat /tmp/lsf*'
docker exec -it slave_one bash -c 'cat /tmp/exec*'
docker exec -it slave_two bash -c 'cat /tmp/exec*'
}

0 comments on commit 7e673a4

Please sign in to comment.