mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Removed old full clean code from bb config
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -54,35 +54,6 @@ from buildbot.steps.slave import MakeDirectory, RemoveDirectory, CopyDirectory
|
||||
from buildbot.steps.transfer import DirectoryUpload, FileDownload
|
||||
from buildbot.process import properties
|
||||
|
||||
"""
|
||||
from http://ss64.com/nt/del.html
|
||||
deltree.cmd script, save it somewhere on the system PATH on windows
|
||||
:: DelTree.cmd
|
||||
:: Remove all files and subfolders but NOT the root folder
|
||||
:: From tip 617 at JsiFAQ.com
|
||||
@echo off
|
||||
if "%1"=="" goto:eof
|
||||
pushd %1
|
||||
del /q *.*
|
||||
for /f "Tokens=*" %%G in ('dir /B') do rd /s /q "%%G"
|
||||
popd
|
||||
"""
|
||||
|
||||
@properties.renderer
|
||||
def cleanCommand(props):
|
||||
|
||||
fullclean = props.getProperty('fullclean', default = False)
|
||||
is_windows = props.getProperty('slavename').find('windows') >= 0
|
||||
|
||||
if fullclean:
|
||||
if is_windows:
|
||||
command = ' '.join(['deltree','.','&&','echo','fully cleaned'])
|
||||
else:
|
||||
command = ' '.join(['rm','-rfv','*','&&','echo','fully cleaned'])
|
||||
else:
|
||||
command = ['echo','no clean requested;', 'fullclean:', props.getProperty('fullclean')]
|
||||
return command
|
||||
|
||||
# A custom platform and Python identifiers
|
||||
platformID = {
|
||||
"windows" : 1,
|
||||
|
||||
Reference in New Issue
Block a user