Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
ISAICP-6229: Sync also PROD build.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiu-cristea committed Oct 2, 2020
1 parent e20a22e commit b55df13
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions scripts/rpmbuild/make_joinup_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,24 @@ cp -r ${PROJECT_ROOT}/resources/rpmbuild/* ${BUILD_ROOT} || exit 1
SOURCES_DIR=${BUILD_ROOT}/SOURCES
JOINUP_DIR=${SOURCES_DIR}/Joinup-${BUILD_VERSION}

mkdir -p ${JOINUP_DIR} || exit 1

# Download composer dependencies.
${COMPOSER_PATH} install --no-dev || exit 1
${COMPOSER_PATH} install || exit 1

# Build the site.
./vendor/bin/run joinup:compile-scss || exit 1
./vendor/bin/run toolkit:build-dist || exit 1

# Collect the source files for the package.
cp -r composer.* VERSION config/ drush/ resources/ scripts/ src/ vendor/ web/ ${JOINUP_DIR} || exit 1
# Move the distribution on its location.
mv dist ${JOINUP_DIR} || exit 1

# Replace files and folders with production symlinks.
rm -rf ${JOINUP_DIR}/web/sites/default/settings.php
rm -rf ${JOINUP_DIR}/web/sites/default/files
cp -r ${SOURCES_DIR}/template/* ${JOINUP_DIR}/web || exit 1
rm -r ${SOURCES_DIR}/template || exit 1

# Remove unneeded files.
rm -rf ${JOINUP_DIR}/web/themes/joinup/scss
# Fix Drush settings.
echo 'options:' > ${JOINUP_DIR}/drush/drush.yml
echo " uri: ${DRUPAL_BASE_URL}" >> ${JOINUP_DIR}/drush/drush.yml

# Output the version number in a file that will be appended to the HTTP headers.
echo X-build-id: $BUILD_VERSION > ${SOURCES_DIR}/buildinfo.ini
Expand Down

0 comments on commit b55df13

Please sign in to comment.