diff options
-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 | ||