From 4ac780eb21f1cceeca34e698e6865d49ec7d3ee8 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Mon, 3 Oct 2016 14:33:05 +0200 Subject: Use install_dev.sh for Travis Add `--no-dev` to `composer install` for prod env --- install.sh | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 29b343b2..87d53bf0 100755 --- a/install.sh +++ b/install.sh @@ -1,15 +1,13 @@ #! /usr/bin/env bash -if [[ $ASSETS == 'build' ]]; then - echo "Installing PHP dependencies through Composer..." - composer install --no-interaction --no-progress --prefer-dist -o - - chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm - echo "Downloading librairies through npm..." - vendor/mouf/nodejs-installer/bin/local/npm install - - echo "Concat, minify and installing assets..." - node_modules/grunt/bin/grunt -else - composer install --no-interaction --no-progress --prefer-dist -o -fi +echo " > Installing PHP dependencies through Composer..." +composer install --no-interaction --no-progress --prefer-dist -o --no-dev + +chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm +echo " > Downloading librairies through npm..." +vendor/mouf/nodejs-installer/bin/local/npm install + +echo " > Concat, minify and installing assets..." +node_modules/grunt/bin/grunt + +echo " > Install finished" -- cgit v1.2.3