Skip to content

Commit ff561f3

Browse files
committed
Composer is not available in alpine 3.7
1 parent 7ed9d7b commit ff561f3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ tests-php5.6:
2222
- name: "$CI_REGISTRY_IMAGE:server-test"
2323
alias: server_test
2424
script:
25-
- apk add --no-cache composer php5-cli php5-curl php5-gd php5-phar php5-json php5-openssl php5-dom php5-xml php5-zlib
25+
- apk add --no-cache php5-cli php5-curl php5-gd php5-phar php5-json php5-openssl php5-dom php5-xml php5-zlib
2626
- ln -s /usr/bin/php5 /usr/bin/php
2727
- php --version
28-
- composer install
28+
- if [ ! -f composer.phar ]; then DOWLOAD_COMPOSER=1 ; fi;
29+
- if [ -n "$DOWLOAD_COMPOSER" ] ; then php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" ; fi;
30+
- if [ -n "$DOWLOAD_COMPOSER" ] ; then php composer-setup.php ; fi;
31+
- if [ -n "$DOWLOAD_COMPOSER" ] ; then php -r "unlink('composer-setup.php');" ; fi;
32+
- php composer.phar install
2933
- vendor/bin/phpcs --warning-severity=0 --standard=PSR2 src
3034
- vendor/bin/phpunit
3135
cache:

0 commit comments

Comments
 (0)