2016-08-24 19:17:27 +02:00
|
|
|
#!/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
|
|
|
|
|
|
|
|
cp jorobo.dist.ini jorobo.ini
|
|
|
|
cp RoboFile.dist.ini RoboFile.ini
|
|
|
|
|
2019-09-12 11:56:51 +01:00
|
|
|
# Make sure the path to the CMS is inside the apache config for docker
|
2019-09-12 14:12:11 +01:00
|
|
|
sed -r 's!^(cmsPath\s*=\s*)(.*)!\1\/tests\/www\/\2!' RoboFile.ini
|
2019-09-12 11:56:51 +01:00
|
|
|
|
2016-08-24 19:17:27 +02:00
|
|
|
# Build package
|
|
|
|
vendor/bin/robo build --dev
|
|
|
|
|
|
|
|
# Copy acceptance yml
|
|
|
|
cp tests/acceptance.suite.dist.yml tests/acceptance.suite.yml
|