mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-26 00:28:10 +00:00
Use install_dev.sh for Travis
Add `--no-dev` to `composer install` for prod env
This commit is contained in:
parent
8fdb5e5766
commit
4ac780eb21
3 changed files with 20 additions and 21 deletions
|
@ -91,8 +91,8 @@ before_install:
|
||||||
- if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
|
- if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- travis_wait bash install.sh
|
- travis_wait bash install_dev.sh
|
||||||
- ant prepare-$DB
|
- ant prepare-$DB
|
||||||
- phpunit -v
|
- if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then phpunit -v ; fi;
|
||||||
- if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
|
- if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
|
||||||
- if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
|
- if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
|
||||||
|
|
20
install.sh
20
install.sh
|
@ -1,15 +1,13 @@
|
||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
if [[ $ASSETS == 'build' ]]; then
|
echo " > Installing PHP dependencies through Composer..."
|
||||||
echo "Installing PHP dependencies through Composer..."
|
composer install --no-interaction --no-progress --prefer-dist -o --no-dev
|
||||||
composer install --no-interaction --no-progress --prefer-dist -o
|
|
||||||
|
|
||||||
chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm
|
chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm
|
||||||
echo "Downloading librairies through npm..."
|
echo " > Downloading librairies through npm..."
|
||||||
vendor/mouf/nodejs-installer/bin/local/npm install
|
vendor/mouf/nodejs-installer/bin/local/npm install
|
||||||
|
|
||||||
echo "Concat, minify and installing assets..."
|
echo " > Concat, minify and installing assets..."
|
||||||
node_modules/grunt/bin/grunt
|
node_modules/grunt/bin/grunt
|
||||||
else
|
|
||||||
composer install --no-interaction --no-progress --prefer-dist -o
|
echo " > Install finished"
|
||||||
fi
|
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
echo "Installing PHP dependencies (including dev) through Composer..."
|
echo " > Installing PHP dependencies (including dev) through Composer..."
|
||||||
composer install
|
composer install -o --no-interaction --no-progress --prefer-dist
|
||||||
|
|
||||||
echo "Downloading librairies through npm..."
|
if [[ $ASSETS == 'build' || $TRAVIS_BUILD_DIR == '' ]]; then
|
||||||
npm install
|
echo " > Downloading librairies through npm..."
|
||||||
|
npm install
|
||||||
|
|
||||||
echo "Concat, minify and installing assets..."
|
echo " > Concat, minify and installing assets..."
|
||||||
grunt
|
grunt
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Installing wallabag..."
|
echo " > Install finished"
|
||||||
php bin/console wallabag:install
|
|
||||||
|
|
Loading…
Reference in a new issue