diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-09-11 18:48:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-11 18:48:36 +0200 |
commit | 59758d8fe5ad5ff554391515a78d84b0d47bdb76 (patch) | |
tree | 43054fdd7f15e11d681970dfb692b269fbf6b705 /install.sh | |
parent | c078d18372e05b09b40c34f67b7cb81446f30c4f (diff) | |
parent | 88e88016b9a86d76940082b62c85c3756f461cb2 (diff) | |
download | wallabag-59758d8fe5ad5ff554391515a78d84b0d47bdb76.tar.gz wallabag-59758d8fe5ad5ff554391515a78d84b0d47bdb76.tar.zst wallabag-59758d8fe5ad5ff554391515a78d84b0d47bdb76.zip |
Merge pull request #2279 from wallabag/cleanup-travis
Check if asset is enable instead of opposite
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 19 |
1 files changed, 4 insertions, 15 deletions
@@ -1,15 +1,8 @@ | |||
1 | #! /usr/bin/env bash | 1 | #! /usr/bin/env bash |
2 | 2 | ||
3 | if [[ $ASSETS == 'nobuild' ]]; then | 3 | if [[ $ASSETS == 'build' ]]; then |
4 | composer install --no-interaction --no-progress --prefer-dist -o | ||
5 | else | ||
6 | |||
7 | echo "Installing PHP dependencies through Composer..." | 4 | echo "Installing PHP dependencies through Composer..." |
8 | if [[ $ASSETS == 'build' ]]; then | 5 | composer install --no-interaction --no-progress --prefer-dist -o |
9 | composer install --no-interaction --no-progress --prefer-dist -o | ||
10 | else | ||
11 | SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist | ||
12 | fi | ||
13 | 6 | ||
14 | chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm | 7 | chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm |
15 | echo "Downloading javascript librairies through npm..." | 8 | echo "Downloading javascript librairies through npm..." |
@@ -20,10 +13,6 @@ else | |||
20 | 13 | ||
21 | echo "Concat, minify and installing assets..." | 14 | echo "Concat, minify and installing assets..." |
22 | node_modules/grunt/bin/grunt | 15 | node_modules/grunt/bin/grunt |
23 | 16 | else | |
24 | if [[ $ASSETS != 'build' ]]; then | 17 | composer install --no-interaction --no-progress --prefer-dist -o |
25 | echo "Installing wallabag..." | ||
26 | php bin/console wallabag:install --env=prod | ||
27 | fi | ||
28 | |||
29 | fi | 18 | fi |