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_dev.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'install_dev.sh') diff --git a/install_dev.sh b/install_dev.sh index 61a4f6fd..cbd47495 100755 --- a/install_dev.sh +++ b/install_dev.sh @@ -1,13 +1,14 @@ #! /usr/bin/env bash -echo "Installing PHP dependencies (including dev) through Composer..." -composer install +echo " > Installing PHP dependencies (including dev) through Composer..." +composer install -o --no-interaction --no-progress --prefer-dist -echo "Downloading librairies through npm..." -npm install +if [[ $ASSETS == 'build' || $TRAVIS_BUILD_DIR == '' ]]; then + echo " > Downloading librairies through npm..." + npm install -echo "Concat, minify and installing assets..." -grunt + echo " > Concat, minify and installing assets..." + grunt +fi -echo "Installing wallabag..." -php bin/console wallabag:install +echo " > Install finished" -- cgit v1.2.3