Skip to content

Commit 434c538

Browse files
committed
Move sami/sami install to a step
Signed-off-by: William Desportes <[email protected]>
1 parent 1eea59e commit 434c538

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.travis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ matrix:
2222
- php: nightly
2323
include:
2424
- php: 7.2
25-
env: DOCS=yes
25+
env:
26+
- DOCS=yes
27+
- REQUIRE="sami/sami:^4.0"
28+
script: ./vendor/bin/sami.php --no-interaction update ./tools/sami-config.php
29+
after_success: skip
2630
- php: 7.1
2731
env: REQUIRE="phpmyadmin/motranslator:^3.0"
2832
- dist: precise
@@ -31,7 +35,6 @@ matrix:
3135
sudo: false
3236

3337
install:
34-
- if [ $(php -r "echo PHP_MAJOR_VERSION;") -lt 7 ] ; then sed -i '/sami/D' composer.json ; fi
3538
- if [ -n "$REQUIRE" ] ; then composer require "$REQUIRE" ; fi
3639
- composer install
3740

@@ -43,5 +46,4 @@ cache:
4346
- $HOME/.composer/cache
4447

4548
script:
46-
- if [ "$DOCS" != "yes" ] ; then ./vendor/bin/phpunit --configuration phpunit.xml.dist ; fi
47-
- if [ "$DOCS" = "yes" ] ; then ./vendor/bin/sami.php --no-interaction update ./tools/sami-config.php ; fi
49+
- ./vendor/bin/phpunit --configuration phpunit.xml.dist

0 commit comments

Comments
 (0)