diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-03 14:33:05 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-03 14:35:42 +0200 |
commit | 4ac780eb21f1cceeca34e698e6865d49ec7d3ee8 (patch) | |
tree | ad8b7da6eff922d5842de99f79fb3532c9b72be6 | |
parent | 8fdb5e5766a6bf5970f268200a6c21fd39693637 (diff) | |
download | wallabag-4ac780eb21f1cceeca34e698e6865d49ec7d3ee8.tar.gz wallabag-4ac780eb21f1cceeca34e698e6865d49ec7d3ee8.tar.zst wallabag-4ac780eb21f1cceeca34e698e6865d49ec7d3ee8.zip |
Use install_dev.sh for Travis
Add `--no-dev` to `composer install` for prod env
-rw-r--r-- | .travis.yml | 4 | ||||
-rwxr-xr-x | install.sh | 24 | ||||
-rwxr-xr-x | install_dev.sh | 17 |
3 files changed, 22 insertions, 23 deletions
diff --git a/.travis.yml b/.travis.yml index c5fe7b01..b0b26b56 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -91,8 +91,8 @@ before_install: | |||
91 | - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; | 91 | - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; |
92 | 92 | ||
93 | script: | 93 | script: |
94 | - travis_wait bash install.sh | 94 | - travis_wait bash install_dev.sh |
95 | - ant prepare-$DB | 95 | - ant prepare-$DB |
96 | - phpunit -v | 96 | - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then phpunit -v ; fi; |
97 | - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi; | 97 | - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi; |
98 | - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi; | 98 | - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi; |
@@ -1,15 +1,13 @@ | |||
1 | #! /usr/bin/env bash | 1 | #! /usr/bin/env bash |
2 | 2 | ||
3 | if [[ $ASSETS == 'build' ]]; then | 3 | echo " > Installing PHP dependencies through Composer..." |
4 | echo "Installing PHP dependencies through Composer..." | 4 | composer install --no-interaction --no-progress --prefer-dist -o --no-dev |
5 | composer install --no-interaction --no-progress --prefer-dist -o | 5 | |
6 | 6 | chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm | |
7 | chmod ugo+x vendor/mouf/nodejs-installer/bin/local/npm | 7 | echo " > Downloading librairies through npm..." |
8 | echo "Downloading librairies through npm..." | 8 | vendor/mouf/nodejs-installer/bin/local/npm install |
9 | vendor/mouf/nodejs-installer/bin/local/npm install | 9 | |
10 | 10 | echo " > Concat, minify and installing assets..." | |
11 | echo "Concat, minify and installing assets..." | 11 | node_modules/grunt/bin/grunt |
12 | node_modules/grunt/bin/grunt | 12 | |
13 | else | 13 | echo " > Install finished" |
14 | composer install --no-interaction --no-progress --prefer-dist -o | ||
15 | fi | ||
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 @@ | |||
1 | #! /usr/bin/env bash | 1 | #! /usr/bin/env bash |
2 | 2 | ||
3 | echo "Installing PHP dependencies (including dev) through Composer..." | 3 | echo " > Installing PHP dependencies (including dev) through Composer..." |
4 | composer install | 4 | composer install -o --no-interaction --no-progress --prefer-dist |
5 | 5 | ||
6 | echo "Downloading librairies through npm..." | 6 | if [[ $ASSETS == 'build' || $TRAVIS_BUILD_DIR == '' ]]; then |
7 | npm install | 7 | echo " > Downloading librairies through npm..." |
8 | npm install | ||
8 | 9 | ||
9 | echo "Concat, minify and installing assets..." | 10 | echo " > Concat, minify and installing assets..." |
10 | grunt | 11 | grunt |
12 | fi | ||
11 | 13 | ||
12 | echo "Installing wallabag..." | 14 | echo " > Install finished" |
13 | php bin/console wallabag:install | ||