Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #195 from Gizra/119-features
Browse files Browse the repository at this point in the history
Check the state of Features before execution
  • Loading branch information
amitaibu authored Apr 18, 2018
2 parents 91347f9 + 0cec924 commit 2728519
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ci-scripts/helper_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,14 @@ function check_last_command() {
fi
}

# Make sure Features are in a default state after installation.
function check_features() {
cd "$TRAVIS_BUILD_DIR"/server/www || exit 1
if drush features-list --format=csv | grep Overridden ; then
echo "----"
print_error_message "The features are overridden, aborting the execution"
exit 99
fi
}

export ROOT_DIR="$TRAVIS_BUILD_DIR"
4 changes: 3 additions & 1 deletion ci-scripts/install_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ else
fi
check_last_command

check_features

# -------------------------------------------------- #
# Starting native webserver via Drush.
# -------------------------------------------------- #
cd www || exit 1
cd "$ROOT_DIR"/server/www || exit 1
drush runserver 127.0.0.1:8080 &
until netstat -an 2>/dev/null | grep '8080.*LISTEN'; do true; done

0 comments on commit 2728519

Please sign in to comment.