Skip to content

Commit 10cfa68

Browse files
committed
Simplify variables definition
Signed-off-by: Michal Čihař <michal@cihar.com>
1 parent a78e611 commit 10cfa68

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.travis.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ php:
1313
- "hhvm-3.18"
1414
- "nightly"
1515

16-
env:
17-
matrix:
18-
- MOTRANSLATOR=no DOCS=no
19-
2016
matrix:
2117
fast_finish: true
2218
allow_failures:
@@ -25,15 +21,15 @@ matrix:
2521
- php: "7.1"
2622
env: DOCS=yes
2723
- php: "7.0"
28-
env: MOTRANSLATOR=yes
24+
env: REQUIRE="phpmyadmin/motranslator:^3.0 "
2925
- dist: precise
3026
php: "5.3"
3127

3228
sudo: false
3329

3430
install:
3531
- composer install
36-
- if [ "$MOTRANSLATOR" = "yes" ] ; then composer require phpmyadmin/motranslator:^3.0 ; fi
32+
- if [ -n "$REQUIRE" ] ; then composer require "$REQUIRE" ; fi
3733

3834
after_success:
3935
- bash <(curl -s https://codecov.io/bash)
@@ -43,5 +39,5 @@ cache:
4339
- $HOME/.composer/cache
4440

4541
script:
46-
- if [ "$DOCS" = "no" ] ; then ./vendor/bin/phpunit --configuration phpunit.xml ; fi
42+
- if [ "$DOCS" != "yes" ] ; then ./vendor/bin/phpunit --configuration phpunit.xml ; fi
4743
- if [ "$DOCS" = "yes" ] ; then ./vendor/bin/apigen generate --destination doc src/ ; fi

0 commit comments

Comments
 (0)