Skip to content

Commit

Permalink
Set FLUTTER_ROOT in env-set.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Sep 10, 2018
1 parent 9ad6467 commit 131414a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tool/before-install.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
#!/usr/bin/env bash

FLUTTER_ROOT=flutter
FLUTTER_BIN="$FLUTTER_ROOT/bin"

if [[ ! -e "$FLUTTER_ROOT" ]]; then
echo "ERROR: The ~/flutter git submodule is missing. For initialization instructions, see the repo README."
exit 1;
fi

source tool/shared/before-install.sh

# Site-specific settings here: currently, none.

travis_fold start before_install.flutter
echo "Refreshing Flutter repo and running doctor:"
(
Expand Down
2 changes: 2 additions & 0 deletions tool/check-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

set -e # Fast fail the script on failures.

[[ -z "$DART_SITE_ENV_DEFS" ]] && . ./tool/env-set.sh

exec ./tool/build_check_deploy.sh --no-build --no-check-links
8 changes: 8 additions & 0 deletions tool/env-set.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@
source tool/shared/env-set.sh

# Site-specific settings here: currently, none.

export FLUTTER_ROOT=flutter
export FLUTTER_BIN="$FLUTTER_ROOT/bin"

if [[ ! -e "$FLUTTER_ROOT" ]]; then
echo "ERROR: The ~/flutter git submodule is missing. For initialization instructions, see the repo README."
exit 1;
fi

0 comments on commit 131414a

Please sign in to comment.