Use install_dev.sh for Travis

Add `--no-dev` to `composer install` for prod env
This commit is contained in:
Jeremy Benoist
2016-10-03 14:33:05 +02:00
parent 8fdb5e5766
commit 4ac780eb21
3 changed files with 20 additions and 21 deletions

View File

@ -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"