8000 cleanup clone_library · snmng/arduinoWebSockets@0e729cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e729cd

Browse files
committed
cleanup clone_library
1 parent 2f21590 commit 0e729cd

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

travis/common.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ function get_sketches_json_matrix()
8686
done
8787
}
8888

89-
90-
9189
function B0F3 get_core()
9290
{
9391
echo Setup core for $1
@@ -115,3 +113,19 @@ function get_core()
115113
fi
116114

117115
}
116+
117+
function clone_library() {
118+
local url=$1
119+
echo clone $(basename $url)
120+
mkdir -p $HOME/Arduino/libraries
121+
cd $HOME/Arduino/libraries
122+
git clone --depth 1 $url
123+
rm -rf */.git
124+
rm -rf */.github
125+
rm -rf */examples
126+
}
127+
128+
function hash_library_names() {
129+
cd $HOME/Arduino/libraries
130+
ls | sha1sum -z | cut -c1-5
131+
}

0 commit comments

Comments
 (0)
0