forked from massiveart/MassiveSearchBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (54 loc) · 1.57 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: php
sudo: false
env:
global:
- ES_VERSION="2.4.4"
- ES_DOWNLOAD_URL="https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/zip/elasticsearch/${ES_VERSION}/elasticsearch-${ES_VERSION}.zip"
matrix:
include:
- php: 5.5
env:
- PREFER="--prefer-lowest"
- SYMFONY_DEPRECATIONS_HELPER=weak
- ENABLE_SWAP=true
- php: 5.5
env:
- PREFER=""
- SYMFONY_DEPRECATIONS_HELPER=weak
- ENABLE_SWAP=true
- php: 5.6
env:
- PREFER=""
- SYMFONY_DEPRECATIONS_HELPER=weak
- ENABLE_SWAP=true
- php: 7.3
env:
- PREFER=""
- SYMFONY_DEPRECATIONS_HELPER=strong
before_install:
- curl -L -o elasticsearch.zip ${ES_DOWNLOAD_URL}
- ls -lah
- | # enable swap
if [[ $ENABLE_SWAP == 'true' ]]; then
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo sysctl vm.swappiness=10
fi
- unzip elasticsearch.zip
- phpenv config-rm xdebug.ini
- phpenv config-add Tests/travis.php.ini
- composer self-update
before_script:
- composer require elasticsearch/elasticsearch:^2.1 --dev --no-update
- composer update --prefer-dist $PREFER
- elasticsearch-*/bin/elasticsearch -d
- wget -q --waitretry=2 --retry-connrefused -T 20 -O - http://127.0.0.1:9200
script:
- vendor/bin/phpunit --coverage-text
- vendor/bin/behat --suite=zend_lucene
- vendor/bin/behat --suite=elastic
cache:
directories:
- $HOME/.composer/cache