forked from neos/content-repository-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (44 loc) · 1.97 KB
/
.travis.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
language: php
matrix:
fast_finish: true
include:
- php: 7.4
env: DB=mysql
addons:
mariadb: '10.2'
- php: 7.4
env: DB=pgsql
sudo: true
dist: trusty
addons:
postgresql: "9.5"
cache:
directories:
- $HOME/.composer/cache
before_install:
- export NEOS_TARGET_VERSION=7.0
- cd ..
- git clone https://github.com/neos/neos-base-distribution.git -b ${NEOS_TARGET_VERSION}
- cd neos-base-distribution
- composer require --no-update --no-interaction neos/content-repository-search:dev-master
install:
- composer install --no-interaction
- cd ..
- rm -rf neos-base-distribution/Packages/Application/Neos.ContentRepository.Search
- mv content-repository-search neos-base-distribution/Packages/Application/Neos.ContentRepository.Search
- cd neos-base-distribution
before_script:
- phpenv config-rm xdebug.ini
- echo 'date.timezone = "Antarctica/Troll"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'opcache.fast_shutdown = 0' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'opcache.enable_cli = 0' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'zend.enable_gc = 0' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'report_zend_debug = 0' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- echo 'report_memleaks = 0' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- cp Configuration/Settings.yaml.example Configuration/Settings.yaml
- Build/BuildEssentials/TravisCi/SetupDatabase.sh
- cp Configuration/Settings.yaml Configuration/Testing/
- ./flow flow:package:rescan
script:
- bin/phpunit --colors -c Build/BuildEssentials/PhpUnit/UnitTests.xml Packages/Application/Neos.ContentRepository.Search/Tests/Unit
# - bin/phpunit --colors --stop-on-failure -c Build/BuildEssentials/PhpUnit/FunctionalTests.xml Packages/Application/Neos.ContentRepository.Search/Tests/Functional