You are here

install.sh in Lightning Core 8.4

Same filename and directory in other branches
  1. 8.3 tests/travis/install.sh
#!/usr/bin/env bash

# NAME
#     install.sh - Install Travis CI dependencies
#
# SYNOPSIS
#     install.sh
#
# DESCRIPTION
#     Creates the test fixture.

cd "$(dirname "$0")"

# Reuse ORCA's own includes.
source ../../../orca/bin/travis/_includes.sh

# Exit early if no DB fixture is specified.
[[ "$DB_FIXTURE" ]] || exit 0

cd "$ORCA_FIXTURE_DIR/docroot"

mkdir -p sites/default/files
chmod -R 0770 sites/default/files

DB="$TRAVIS_BUILD_DIR/tests/fixtures/$DB_FIXTURE.php.gz"

php core/scripts/db-tools.php import ${DB}

drush php:script "$TRAVIS_BUILD_DIR/tests/update.php"

# Ensure menu_ui is installed.
drush pm-enable menu_ui --yes

drush updatedb --yes
drush update:lightning --no-interaction --yes

orca fixture:enable-extensions

# Reinstall from exported configuration to prove that it's coherent.
drush config:export --yes
drush site:install --yes --existing-config

# Big Pipe interferes with non-JavaScript functional tests, so uninstall it now.
drush pm-uninstall big_pipe --yes

# Set the fixture state to reset to between tests.
orca fixture:backup -f

File

tests/travis/install.sh
View source
  1. #!/usr/bin/env bash
  2. # NAME
  3. # install.sh - Install Travis CI dependencies
  4. #
  5. # SYNOPSIS
  6. # install.sh
  7. #
  8. # DESCRIPTION
  9. # Creates the test fixture.
  10. cd "$(dirname "$0")"
  11. # Reuse ORCA's own includes.
  12. source ../../../orca/bin/travis/_includes.sh
  13. # Exit early if no DB fixture is specified.
  14. [[ "$DB_FIXTURE" ]] || exit 0
  15. cd "$ORCA_FIXTURE_DIR/docroot"
  16. mkdir -p sites/default/files
  17. chmod -R 0770 sites/default/files
  18. DB="$TRAVIS_BUILD_DIR/tests/fixtures/$DB_FIXTURE.php.gz"
  19. php core/scripts/db-tools.php import ${DB}
  20. drush php:script "$TRAVIS_BUILD_DIR/tests/update.php"
  21. # Ensure menu_ui is installed.
  22. drush pm-enable menu_ui --yes
  23. drush updatedb --yes
  24. drush update:lightning --no-interaction --yes
  25. orca fixture:enable-extensions
  26. # Reinstall from exported configuration to prove that it's coherent.
  27. drush config:export --yes
  28. drush site:install --yes --existing-config
  29. # Big Pipe interferes with non-JavaScript functional tests, so uninstall it now.
  30. drush pm-uninstall big_pipe --yes
  31. # Set the fixture state to reset to between tests.
  32. orca fixture:backup -f