test conditions in js-release
This commit is contained in:
parent
bc942e896e
commit
f7f718b30f
@ -10,7 +10,7 @@ TEST_SWITCH=$1
|
|||||||
rust_test () {
|
rust_test () {
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
rustup show
|
rustup show
|
||||||
if [ "${RUST_FILES_MODIFIED}" -eq 0 ];
|
if [[ "${RUST_FILES_MODIFIED}" != "0" ]];
|
||||||
then echo "Skipping Rust tests since no Rust files modified.";
|
then echo "Skipping Rust tests since no Rust files modified.";
|
||||||
else ./test.sh;
|
else ./test.sh;
|
||||||
fi
|
fi
|
||||||
@ -20,19 +20,19 @@ rust_test () {
|
|||||||
}
|
}
|
||||||
js_test () {
|
js_test () {
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
if [ "${JS_FILES_MODIFIED}" -eq 0 ];
|
if [[ "${JS_FILES_MODIFIED}" != "0" ]];
|
||||||
then echo "Skipping JS deps install since no JS files modified.";
|
then echo "Skipping JS deps install since no JS files modified.";
|
||||||
else ./js/scripts/install-deps.sh;
|
else ./js/scripts/install-deps.sh;
|
||||||
fi
|
fi
|
||||||
if [ "${JS_OLD_FILES_MODIFIED}" -eq 0 ];
|
if [[ "${JS_OLD_FILES_MODIFIED}" != "0" ]];
|
||||||
then echo "Skipping JS (old) deps install since no JS files modified.";
|
then echo "Skipping JS (old) deps install since no JS files modified.";
|
||||||
else ./js-old/scripts/install-deps.sh;
|
else ./js-old/scripts/install-deps.sh;
|
||||||
fi
|
fi
|
||||||
if [ "${JS_FILES_MODIFIED}" -eq 0 ];
|
if [[ "${JS_FILES_MODIFIED}" != "0" ]];
|
||||||
then echo "Skipping JS lint since no JS files modified.";
|
then echo "Skipping JS lint since no JS files modified.";
|
||||||
else ./js/scripts/lint.sh && ./js/scripts/test.sh && ./js/scripts/build.sh;
|
else ./js/scripts/lint.sh && ./js/scripts/test.sh && ./js/scripts/build.sh;
|
||||||
fi
|
fi
|
||||||
if [ "${JS_OLD_FILES_MODIFIED}" -eq 0 ];
|
if [[ "${JS_OLD_FILES_MODIFIED}" != "0" ]];
|
||||||
then echo "Skipping JS (old) lint since no JS files modified.";
|
then echo "Skipping JS (old) lint since no JS files modified.";
|
||||||
else ./js-old/scripts/lint.sh && ./js-old/scripts/test.sh && ./js-old/scripts/build.sh;
|
else ./js-old/scripts/lint.sh && ./js-old/scripts/test.sh && ./js-old/scripts/build.sh;
|
||||||
fi
|
fi
|
||||||
@ -40,24 +40,24 @@ js_test () {
|
|||||||
js_release () {
|
js_release () {
|
||||||
rustup default stable
|
rustup default stable
|
||||||
echo "${JS_FILES_MODIFIED}"
|
echo "${JS_FILES_MODIFIED}"
|
||||||
if [ "${JS_FILES_MODIFIED}" -eq 0 ];
|
if [[ "${JS_FILES_MODIFIED}" != "0" ]];
|
||||||
then echo "Skipping JS deps install since no JS files modified.";
|
then echo "Skipping JS deps install since no JS files modified.";
|
||||||
else ./js/scripts/install-deps.sh;
|
else ./js/scripts/install-deps.sh;
|
||||||
fi
|
fi
|
||||||
if [ "${JS_FILES_MODIFIED}" -eq 0 ];
|
if [[ "${JS_FILES_MODIFIED}" -eq 0 ]];
|
||||||
then echo "Skipping JS rebuild since no JS files modified.";
|
then echo "Skipping JS rebuild since no JS files modified.";
|
||||||
else ./js/scripts/build.sh && ./js/scripts/push-precompiled.sh;
|
else ./js/scripts/build.sh && ./js/scripts/push-precompiled.sh;
|
||||||
fi
|
fi
|
||||||
echo "${JS_OLD_FILES_MODIFIED}"
|
echo "${JS_OLD_FILES_MODIFIED}"
|
||||||
if [ "${JS_OLD_FILES_MODIFIED}" -eq 0 ];
|
if [[ "${JS_OLD_FILES_MODIFIED}" != "0" ]];
|
||||||
then echo "Skipping JS (old) deps install since no JS files modified.";
|
then echo "Skipping JS (old) deps install since no JS files modified.";
|
||||||
else ./js-old/scripts/install-deps.sh;
|
else ./js-old/scripts/install-deps.sh;
|
||||||
fi
|
fi
|
||||||
if [ "${JS_OLD_FILES_MODIFIED}" -eq 0 ];
|
if [[ "${JS_OLD_FILES_MODIFIED}" != "0" ]];
|
||||||
then echo "Skipping JS (old) rebuild since no JS files modified.";
|
then echo "Skipping JS (old) rebuild since no JS files modified.";
|
||||||
else ./js-old/scripts/build.sh && ./js-old/scripts/push-precompiled.sh;
|
else ./js-old/scripts/build.sh && ./js-old/scripts/push-precompiled.sh;
|
||||||
fi
|
fi
|
||||||
if [ "${JS_FILES_MODIFIED}" -eq 0 ] && [ "${JS_OLD_FILES_MODIFIED}" -eq 0 ];
|
if [[ "${JS_FILES_MODIFIED}" != "0" ]] && [[ "${JS_OLD_FILES_MODIFIED}" != "0" ]];
|
||||||
then echo "Skipping Cargo update since no JS files modified.";
|
then echo "Skipping Cargo update since no JS files modified.";
|
||||||
else ./js/scripts/push-cargo.sh;
|
else ./js/scripts/push-cargo.sh;
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user