git.delta.rocks / unique-network / refs/commits / f082ca53dc4e

difftreelog

test apps launch scripts

Yaroslav Bolyukin2022-04-12parent: #f9a4dd5.patch.diff
in: master

3 files changed

addedtests/update_apps.shdiffbeforeafterboth
--- /dev/null
+++ b/tests/update_apps.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env sh
+
+./update_types.sh
+
+if [ ! -d polkadot-apps ]; then
+	git clone git@github.com:polkadot-js/apps.git polkadot-apps --depth=1
+fi
+
+pushd polkadot-apps
+yarn link ../unique-types-js
+popd
\ No newline at end of file
addedtests/update_apps_start.shdiffbeforeafterboth

no changes

modifiedtests/update_types.shdiffbeforeafterboth
--- a/tests/update_types.sh
+++ b/tests/update_types.sh
@@ -2,17 +2,16 @@
 
 yarn polkadot-types
 
-cd ../..
-if [ ! -f unique-types-js ]; then
+if [ ! -d unique-types-js ]; then
 	git clone git@github.com:UniqueNetwork/unique-types-js.git
 fi
 
-rsync -ar --delete unique-chain/tests/src/interfaces/ unique-types-js/src/interfaces
-for file in unique-types-js/src/interfaces/augment-*; do
+rsync -ar --exclude .gitignore src/interfaces/ unique-types-js
+for file in unique-types-js/augment-*; do
 	sed -i '1s;^;//@ts-nocheck\n;' $file
 done
 
-cd unique-types-js
-git add src/interfaces/
+pushd unique-types-js
+git add .
 git commit -m "chore: regenerate types"
-cd ../unique-chain/tests
\ No newline at end of file
+popd