-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add minimal htcondor CI support (#420)
- Loading branch information
Showing
3 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/env bash | ||
|
||
function jobqueue_before_install { | ||
docker version | ||
|
||
docker run -d --name jobqueue-htcondor-mini htcondor/mini:el7 # might fail if called as script | ||
|
||
docker ps -a | ||
docker images | ||
} | ||
[[ "${BASH_SOURCE[0]}" != "${0}" ]] || jobqueue_before_install # excute if called as script | ||
|
||
function jobqueue_install { | ||
docker exec --user root jobqueue-htcondor-mini /bin/bash -c " | ||
rm -rf /dask-jobqueue | ||
" | ||
docker cp . jobqueue-htcondor-mini:/dask-jobqueue | ||
|
||
docker exec --user root jobqueue-htcondor-mini /bin/bash -c " | ||
python3 -c 'import psutil' 2>/dev/null || yum -y install python3-psutil; # psutil has no wheel , install gcc even slower | ||
cd /dask-jobqueue; | ||
pip3 install -e .; | ||
pip3 install pytest; | ||
rm -f /var/log/condor/* | ||
chown -R submituser:submituser /dask-jobqueue | ||
" | ||
} | ||
[[ "${BASH_SOURCE[0]}" != "${0}" ]] || jobqueue_install # excute if called as script | ||
|
||
function jobqueue_script { | ||
docker exec --user=submituser jobqueue-htcondor-mini /bin/bash -c " | ||
cd /dask-jobqueue; | ||
pytest dask_jobqueue --verbose -s -E htcondor" | ||
} | ||
[[ "${BASH_SOURCE[0]}" != "${0}" ]] || jobqueue_script # excute if called as script | ||
|
||
function jobqueue_after_script { | ||
docker exec --user root jobqueue-htcondor-mini /bin/bash -c " | ||
grep -R \"\" /var/log/condor/ | ||
" | ||
} | ||
[[ "${BASH_SOURCE[0]}" != "${0}" ]] || jobqueue_after_script # excute if called as script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters