2016-08-24 17:17:27 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
VERSION="$(git rev-parse --short HEAD)"
|
|
|
|
|
|
|
|
echo "Started building at $(date) - $(whoami)"
|
|
|
|
|
|
|
|
# Update composer
|
|
|
|
composer self-update
|
|
|
|
|
2016-08-26 09:39:04 +00:00
|
|
|
# show directory listing
|
|
|
|
ls -al
|
|
|
|
ls -al vendor
|
|
|
|
mount
|
|
|
|
|
2016-08-24 17:17:27 +00:00
|
|
|
# Install dependencies
|
|
|
|
composer install --no-interaction --no-progress
|
|
|
|
|
2016-08-26 08:53:53 +00:00
|
|
|
mkdir -p /tests/www
|
|
|
|
cp -r ./* /tests/www
|
|
|
|
|
|
|
|
cd /tests/www
|
|
|
|
|
2016-08-24 17:17:27 +00:00
|
|
|
cp jorobo.dist.ini jorobo.ini
|
|
|
|
cp RoboFile.dist.ini RoboFile.ini
|
|
|
|
|
|
|
|
# Build package
|
|
|
|
vendor/bin/robo build --dev
|
|
|
|
|
|
|
|
# Copy acceptance yml
|
|
|
|
cp tests/acceptance.suite.dist.yml tests/acceptance.suite.yml
|
|
|
|
|
|
|
|
chown -R www-data .
|
|
|
|
chown -R www-data /tests
|