We shouldn't really try to test the build script
This commit is contained in:
parent
d371b40584
commit
a5753b277c
21
build.sh
21
build.sh
|
@ -14,7 +14,6 @@ echo ${COMMIT_CHANGES}
|
||||||
wget --quiet https://raw.githubusercontent.com/KSP-CKAN/CKAN/master/bin/ckan-validate.py -O ckan-validate.py
|
wget --quiet https://raw.githubusercontent.com/KSP-CKAN/CKAN/master/bin/ckan-validate.py -O ckan-validate.py
|
||||||
wget --quiet https://raw.githubusercontent.com/KSP-CKAN/CKAN/master/CKAN.schema -O CKAN.schema
|
wget --quiet https://raw.githubusercontent.com/KSP-CKAN/CKAN/master/CKAN.schema -O CKAN.schema
|
||||||
chmod a+x ckan-validate.py
|
chmod a+x ckan-validate.py
|
||||||
./ckan-validate.py ${COMMIT_CHANGES}
|
|
||||||
|
|
||||||
# fetch latest ckan.exe
|
# fetch latest ckan.exe
|
||||||
echo "Fetching latest ckan.exe"
|
echo "Fetching latest ckan.exe"
|
||||||
|
@ -37,13 +36,16 @@ mono --debug ckan.exe update
|
||||||
|
|
||||||
for f in ${COMMIT_CHANGES}
|
for f in ${COMMIT_CHANGES}
|
||||||
do
|
do
|
||||||
echo ----------------------------------------------
|
if [ "$f" == "build.sh" ]; then
|
||||||
echo
|
./ckan-validate.py $f
|
||||||
cat $f | python -m json.tool
|
echo ----------------------------------------------
|
||||||
echo ----------------------------------------------
|
echo
|
||||||
echo
|
cat $f | python -m json.tool
|
||||||
echo Running ckan install -c $f
|
echo ----------------------------------------------
|
||||||
mono --debug ckan.exe install -c $f --headless
|
echo
|
||||||
|
echo Running ckan install -c $f
|
||||||
|
mono --debug ckan.exe install -c $f --headless
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Show all installed mods.
|
# Show all installed mods.
|
||||||
|
@ -52,3 +54,6 @@ echo "Installed mods:"
|
||||||
mono --debug ckan.exe list --porcelain
|
mono --debug ckan.exe list --porcelain
|
||||||
|
|
||||||
perl -e'@installed = `mono --debug ckan.exe list --porcelain`; foreach (@installed) { /^\S\s(?<mod>\S+)/ and system("mono --debug ckan.exe show $+{mod}"); print "\n\n"; } exit 0;'
|
perl -e'@installed = `mono --debug ckan.exe list --porcelain`; foreach (@installed) { /^\S\s(?<mod>\S+)/ and system("mono --debug ckan.exe show $+{mod}"); print "\n\n"; } exit 0;'
|
||||||
|
|
||||||
|
# Cleanup.
|
||||||
|
mono ckan.exe ksp forget ${ghprbActualCommit}
|
||||||
|
|
Loading…
Reference in New Issue