Update CI build config
This commit is contained in:
parent
951d63c87f
commit
22dc29f945
@ -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
|
@ -5,6 +5,8 @@ install:
|
|||||||
|
|
||||||
php:
|
php:
|
||||||
- 7
|
- 7
|
||||||
|
- 7.1
|
||||||
|
- 7.2
|
||||||
- hhvm
|
- hhvm
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user