-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
47 lines (39 loc) · 1.12 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
language: php
dist: focal
addons:
apt:
packages:
- "libonig5"
matrix:
include:
- php: 8.1
env:
- COMPOSER_FLAGS='--prefer-lowest'
- php: 8.1
- php: 8.2
- php: 8.3
env:
global:
- ELASTICSEARCH_URL=http://127.0.0.1:9200
cache:
directories:
- $HOME/.composer/cache
- vendor
before_install:
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.8-amd64.deb
- sudo dpkg -i --force-confnew elasticsearch-7.17.8-amd64.deb
- sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch
- sudo service elasticsearch restart
before_script:
- echo 'date.timezone = "Europe/Warsaw"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- phpenv config-rm xdebug.ini
- export PATH="$HOME/bin:$PATH"
- ./install_composer.sh
- composer validate
- composer update $COMPOSER_FLAGS
script:
- composer sniffer
- composer stan
- rm -rf tests/Bundle/DataGridBundle/Fixtures/var/cache/*
- rm -rf tests/Bundle/DataSourceBundle/Fixtures/var/cache/*
- composer unit