forked from frappant/frp_form_answers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
37 lines (33 loc) · 971 Bytes
/
.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
# Template for unit tests for better reuse
.job_template: &unit_test
image: webdevops/php:$DOCKER_TAG
only:
- branches
except:
- master
stage: test
before_script:
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- export COMPOSER_CACHE_DIR=/cache/composer
script:
- composer require typo3/cms="${TYPO3_VERSION}"
- export TYPO3_PATH_WEB="$PWD/.Build/web"
- .Build/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit
- .Build/bin/phplint ./ --exclude ".Build"
cache:
paths:
- cache/
stages:
- test
# Unit Tests in PHP 7.0 and TYPO3 8 (latest stable release)
unittest-php7-8:
<<: *unit_test
variables:
DOCKER_TAG: debian-9
TYPO3_VERSION: ^8
# Unit Tests in PHP 7.0 and TYPO3 (current master)
# unittest-php7-master:
# <<: *unit_test
# variables:
# DOCKER_TAG: debian-9
# TYPO3_VERSION: dev-master