Skip to content

Commit

Permalink
feat(travis-ci): install plugins specified in envvar RIME_PLUGINS
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Mar 31, 2019
1 parent f9c56cf commit c857639
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions travis-install-plugins.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

for slug in "$@"
do
plugin_project="${slug##*/}"
plugin_dir="plugins/${plugin_project#librime-}"
git clone --depth 1 "https://github.com/${slug}.git" "${plugin_dir}"

if [[ -e "${plugin_dir}/travis-install.sh" ]]; then
bash "${plugin_dir}/travis-install.sh"
fi
done
5 changes: 5 additions & 0 deletions travis-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ if [[ "$TRAVIS_OS_NAME" == linux ]]; then
elif [[ "$TRAVIS_OS_NAME" == osx ]]; then
make -f xcode.mk thirdparty
fi

if [[ -n "${RIME_PLUGINS}" ]]; then
# intentionally not quoted: ${RIME_PLUGIN} is a space separated list of slugs
bash ./travis-install-plugins.sh ${RIME_PLUGINS}
fi

0 comments on commit c857639

Please sign in to comment.