Add nix purge command and change the behavior of nix clean

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
Andrea Maria Piana 2020-12-21 09:20:38 +01:00
parent 2571e44de0
commit b5a6f1b78f
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
3 changed files with 9 additions and 2 deletions

View File

@ -127,10 +127,17 @@ _tmpdir-rm: SHELL := /bin/sh
_tmpdir-rm: ##@prepare Remove TMPDIR
rm -fr "$(TMPDIR)"
# Remove directories and ignored files
clean: SHELL := /bin/sh
clean: _fix-node-perms _tmpdir-rm ##@prepare Remove all output folders
git clean -dXf
# Remove directories, ignored and non-ignored files
purge: SHELL := /bin/sh
purge: _fix-node-perms _tmpdir-rm ##@prepare Remove all output folders
git clean -dxf
watchman-clean: export TARGET := watchman
watchman-clean: ##@prepare Delete repo directory from watchman
watchman watch-del $${STATUS_REACT_HOME}

View File

@ -116,7 +116,7 @@ pipeline {
}
stage('Cleanup') {
steps {
sh 'make clean'
sh 'make purge'
}
}
}

View File

@ -114,7 +114,7 @@ pipeline {
stage('Cleanup') {
steps {
sh 'make watchman-clean'
sh 'make clean'
sh 'make purge'
}
}
}