You are here

install.sh in Media: Acquia DAM 8

#!/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 in the absence of a fixture.
[[ -d "$ORCA_FIXTURE_DIR" ]] || exit 0

# Target the deprecated code scan job.
if [[ "$ORCA_JOB" = "LOOSE_DEPRECATED_CODE_SCAN" || "$ORCA_JOB" = "STRICT_DEPRECATED_CODE_SCAN" ]]; then
  (
    composer --working-dir="$ORCA_FIXTURE_DIR" require drupal/entity_browser
    composer --working-dir="$ORCA_FIXTURE_DIR" require drupal/linkit:~5.0
  )
fi
exit 0

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 in the absence of a fixture.
  14. [[ -d "$ORCA_FIXTURE_DIR" ]] || exit 0
  15. # Target the deprecated code scan job.
  16. if [[ "$ORCA_JOB" = "LOOSE_DEPRECATED_CODE_SCAN" || "$ORCA_JOB" = "STRICT_DEPRECATED_CODE_SCAN" ]]; then
  17. (
  18. composer --working-dir="$ORCA_FIXTURE_DIR" require drupal/entity_browser
  19. composer --working-dir="$ORCA_FIXTURE_DIR" require drupal/linkit:~5.0
  20. )
  21. fi
  22. exit 0