Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
leoafarias authored Dec 27, 2019
1 parent 3dd2a42 commit de2fcf2
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,26 @@ EOF
echo "OK"
}

test_dart() {
echo "Run test for dart"
pub get
pub test
}

test_flutter() {
echo "Run test for flutter"
flutter pub get
flutter test
}

run_test_if_needed() {
if "${INPUT_SKIP_TEST}"; then
echo 'Skip test'
else
echo "Run test"
if "${INPUT_FLUTTER_PACKAGE}"; then
flutter pub get
flutter test
test_flutter()
else
pub get
pub test
test_dart()
fi
fi
}
Expand Down

0 comments on commit de2fcf2

Please sign in to comment.