30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-05-31 05:20:50 +00:00
weblinks/.drone/build.sh

28 lines
762 B
Bash
Raw Normal View History

#!/usr/bin/env bash
VERSION="$(git rev-parse --short HEAD)"
echo "Started building at $(date) - $(whoami)"
# Update composer
composer self-update
# Install dependencies
composer install --no-interaction --no-progress
2019-09-12 17:05:28 +00:00
google-chrome --version
chmod 755 vendor/joomla-projects/selenium-server-standalone/bin/webdrivers/chrome/linux/chromedriver
cp jorobo.dist.ini jorobo.ini
cp RoboFile.dist.ini RoboFile.ini
2019-09-12 16:29:56 +00:00
# Create the apache root directory then configure the RoboFile to use it for the Joomla Site
2019-09-12 16:53:04 +00:00
mkdir -p /tests/www/tests/joomla
2019-09-12 16:29:56 +00:00
chown -R www-data /tests
2019-09-12 15:27:05 +00:00
sed -i -r 's!^(cmsPath\s*=\s*)(.*)!\1\/tests\/www\/\2!' RoboFile.ini
# Build package
vendor/bin/robo build --dev
# Copy acceptance yml
cp tests/acceptance.suite.dist.yml tests/acceptance.suite.yml