-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.gitlab-ci.yml
101 lines (83 loc) · 2.64 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
image: php
services:
- mysql:latest
variables:
MYSQL_DATABASE: testing
MYSQL_ROOT_PASSWORD: secret
MYSQL_HOST: mysql
cache:
paths:
- vendor/
before_script:
- set -e
- apt-get update -yqq
- apt-get install wget -yqq
# Install dependencies
- apt-get install git libxml2-dev libexpat1-dev libbz2-dev libgmp3-dev libldap2-dev unixodbc-dev libpq-dev libsqlite3-dev libaspell-dev libsnmp-dev libpcre3-dev libtidy-dev bison -yqq
- apt-get install lsb-release -yqq #libmcrypt-dev libcurl4-openssl-dev
# Couchbase PHP SDK
- wget http://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-4-amd64.deb
- dpkg -i couchbase-release-1.0-4-amd64.deb
- apt-get update -yqq
- apt-get install libcouchbase-dev -yqq
# Couchbase Server
- bash setup_couchbase_server.sh
# Install php extensions
- docker-php-ext-install pdo_mysql json zip #mbstring mcrypt curl intl gd xml bz2 opcache
- pecl install couchbase # couchbase-2.4.0 or above
- docker-php-ext-enable couchbase
# Install & enable Xdebug for code coverage reports
- pecl install xdebug
- docker-php-ext-enable xdebug
# Install Composer and project dependencies.
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install --prefer-dist --no-interaction
#test_php7.0_cb4.5:
# variables:
# CB_DATABASE: "test-ing-cb45"
# CB_VERSION: "4.5"
# image: php:7.0
# script:
# # run laravel tests
# - php vendor/bin/phpunit --coverage-text --colors=never --coverage-clover=coverage.xml
test_php7.0_cb4.6:
variables:
CB_DATABASE: "test-ing-cb46"
CB_VERSION: "4.6"
image: php:7.0
script:
# run laravel tests
- php vendor/bin/phpunit --coverage-text --colors=never --coverage-clover=coverage.xml
test_php7.1_cb4.6:
variables:
CB_DATABASE: "test-ing-cb46"
CB_VERSION: "4.6"
image: php:7.1
script:
# run laravel tests
- php vendor/bin/phpunit --coverage-text --colors=never --coverage-clover=coverage.xml
test_php7.1_cb5.0:
variables:
CB_DATABASE: "test-ing-cb50"
CB_VERSION: "5.0"
image: php:7.1
script:
# run laravel tests
- php vendor/bin/phpunit --coverage-text --colors=never --coverage-clover=coverage.xml
test_php7.1_cb5.1:
variables:
CB_DATABASE: "test-ing-cb51"
CB_VERSION: "5.1"
image: php:7.1
script:
# run laravel tests
- php vendor/bin/phpunit --coverage-text --colors=never --coverage-clover=coverage.xml
# couchbase does not work with debian 9
#test_php7.2_cb5:
# variables:
# CB_DATABASE: "test-ing-cb5"
# CB_VERSION: 5
# image: php:7.2
# script:
# # run laravel tests
# - php vendor/bin/phpunit --coverage-text --colors=never --coverage-clover=coverage.xml