This repository has been archived by the owner on Sep 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
/
.gitlab-ci.yml
77 lines (68 loc) · 2.15 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Before Script
before_script:
- apt-get update -yqq
- apt-get install git -yqq
# Stages
stages:
- test
# Image from https://github.com/splitbrain/docker-phpfarm
image: splitbrain/phpfarm:jessie
# PHP5.3
php:5.3:
stage: test
script:
- echo "Running PHPUnit Tests on PHP5.3"
- wget https://getcomposer.org/composer.phar -O composer
- php-5.3 composer install
- wget https://phar.phpunit.de/phpunit-old.phar -O phpunit
- php-5.3 phpunit -d memory_limit=512M --colors --debug --coverage-text
# PHP5.4
php:5.4:
stage: test
script:
- echo "Running PHPUnit Tests on PHP5.4"
- wget https://getcomposer.org/composer.phar -O composer
- php-5.4 composer install
- wget https://phar.phpunit.de/phpunit-old.phar -O phpunit
- php-5.4 phpunit -d memory_limit=512M --colors --debug --coverage-text
# PHP5.5
php:5.5:
stage: test
script:
- echo "Running PHPUnit Tests on PHP5.5"
- wget https://getcomposer.org/composer.phar -O composer
- php-5.5 composer install
- wget https://phar.phpunit.de/phpunit-old.phar -O phpunit
- php-5.5 phpunit -d memory_limit=512M --colors --debug --coverage-text
# PHP5.6
php:5.6:
image: php:5.6
script:
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install
- echo "Running PHPUnit Tests on PHP5.6"
- php vendor/bin/phpunit --colors --debug --coverage-text
# PHP7.0
php:7.0:
image: php:7.0
script:
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install
- echo "Running PHPUnit Tests on PHP7.0"
- php vendor/bin/phpunit --colors --debug --coverage-text
# PHP7.1
php:7.1:
image: php:7.1
script:
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install
- echo "Running PHPUnit Tests on PHP7.1"
- php vendor/bin/phpunit --colors --debug --coverage-text
# PHP7.2
php:7.2:
image: php:7.2
script:
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install
- echo "Running PHPUnit Tests on PHP7.2"
- php vendor/bin/phpunit --colors --debug --coverage-text