File tree Expand file tree Collapse file tree 2 files changed +54
-13
lines changed
Expand file tree Collapse file tree 2 files changed +54
-13
lines changed Original file line number Diff line number Diff line change 1+ defaults : &defaults
2+ steps :
3+ # common php steps
4+ - run : echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
5+ - run : echo "date.timezone = UTC" >> $(php --ini |grep Scan |awk '{print $NF}')/timezone.ini
6+ - run : curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
7+
8+ # install apcu
9+ - run : |
10+ docker-php-source extract \
11+ && apk add --no-cache --virtual .phpize-deps-configure $PHPIZE_DEPS \
12+ && printf "\n" | pecl install apcu \
13+ && docker-php-ext-enable apcu \
14+ && apk del .phpize-deps-configure \
15+ && docker-php-source delete
16+
17+ # checkout
18+ - checkout
19+
20+ # post-checkout steps
21+
22+ # run tests
23+ - run : composer install -n --prefer-dist
24+ - run : php vendor/phpunit/phpunit/phpunit -c phpunit.xml --log-junit /tmp/test-results/phpunit/junit.xml
25+ - store_test_results :
26+ path : /tmp/test-results
27+
28+ version : 2
29+ jobs :
30+ build-php71 :
31+ << : *defaults
32+ docker :
33+ - image : php:7.1-alpine
34+ build-php72 :
35+ << : *defaults
36+ docker :
37+ - image : php:7.2-alpine
38+ build-php73 :
39+ << : *defaults
40+ docker :
41+ - image : php:7.3-alpine
42+ build-phpRC :
43+ << : *defaults
44+ docker :
45+ - image : php:rc-alpine
46+
47+ workflows :
48+ version : 2
49+ build :
50+ jobs :
51+ - build-php71
52+ - build-php72
53+ - build-php73
54+ - build-phpRC
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments