Skip to content

Commit

Permalink
fix: fvm alias to brew link
Browse files Browse the repository at this point in the history
  • Loading branch information
dashixiong91 committed Oct 30, 2019
1 parent c90a13b commit 8564be3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -e

THIS_DIR="$(cd "$(if [[ "${0:0:1}" == "/" ]]; then echo "$(dirname $0)";else echo "$PWD/$(dirname $0)";fi)"; pwd)"
HOMEBREW_PROJECT="${THIS_DIR}/../packages/homebrew-fvm"
FORMULA_FILE="${HOMEBREW_PROJECT}/fvm.rb"

if [[ -d /usr/local/opt/fvm ]];then
brew uninstall fvm
fi
HOMEBREW_NO_AUTO_UPDATE=true brew install --HEAD --force $FORMULA_FILE
brew test --HEAD -d $FORMULA_FILE
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"husky": "^4.0.0-beta.5"
},
"scripts": {
"postinstall": "git submodule init && git submodule update",
"test":"bin/test.sh",
"commit": "git-cz",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"pub": "bin/publish.sh"
Expand Down

0 comments on commit 8564be3

Please sign in to comment.