Update CI build config

This commit is contained in:
Timothy Warren 2018-01-17 12:49:52 -05:00
parent 951d63c87f
commit 22dc29f945
3 changed files with 17 additions and 3 deletions

View File

@ -9,6 +9,7 @@ test:7:
- phpdbg -qrr -- vendor/bin/phpunit --coverage-text --colors=never - phpdbg -qrr -- vendor/bin/phpunit --coverage-text --colors=never
test:7.1: test:7.1:
stage: test
before_script: before_script:
- sh build/docker_install.sh > /dev/null - sh build/docker_install.sh > /dev/null
- apk add --no-cache php7-phpdbg - apk add --no-cache php7-phpdbg
@ -16,4 +17,15 @@ test:7.1:
- php composer.phar install --ignore-platform-reqs - php composer.phar install --ignore-platform-reqs
image: php:7.1-alpine image: php:7.1-alpine
script: script:
- phpdbg -qrr -- vendor/bin/phpunit --coverage-text --colors=never - phpdbg -qrr -- ./vendor/bin/phpunit --coverage-text --colors=never
test:7.2:
stage: test
before_script:
- sh build/docker_install.sh > /dev/null
- apk add --no-cache php7-phpdbg
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install --ignore-platform-reqs
image: php:7.2-alpine
script:
- phpdbg -qrr -- ./vendor/bin/phpunit --coverage-text --colors=never

View File

@ -5,6 +5,8 @@ install:
php: php:
- 7 - 7
- 7.1
- 7.2
- hhvm - hhvm
- nightly - nightly

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# We need to install dependencies only for Docker # We need to install dependencies only for Docker
[[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0 [[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0
@ -7,6 +7,6 @@ set -xe
# Install git (the php image doesn't have it) which is required by composer # Install git (the php image doesn't have it) which is required by composer
echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing' > /etc/apk/repositories echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing' > /etc/apk/repositories
apk upgrade --update && apk add --no-cache \ apk add --no-cache \
curl \ curl \
git git