forked from ezsystems/BehatBundle
/
.travis.yml
66 lines (55 loc) · 2.02 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
62
63
64
65
66
# Use trusty for better performance (and avoiding mysql/postgres/solr gone issues on precise and container infra)
dist: trusty
sudo: required
language: php
services:
- mysql
# Mysql isn't installed on trusty (only client is), so we need to specifically install it
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
cache:
directories:
- $HOME/.composer/cache/files
env:
global:
# For functional tests
- COMPOSE_FILE="doc/docker-compose/base-dev.yml:doc/docker-compose/selenium.yml"
- EZPLATFORM_BRANCH=master
- RUN_INSTALL=1
- SYMFONY_ENV=behat
- SYMFONY_DEBUG=1
- SETUP_SCRIPT=./bin/.travis/prepare_behat_v2.sh
matrix:
fast_finish: true
include:
- php: 7.1
env: BEHAT_OPTS="--profile=behat --suite=default --tags='~@broken'" COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/selenium.yml"
- php: 7.1
env: BEHAT_OPTS="--profile=rest --suite=fullJson --tags='~@broken'" COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/selenium.yml"
- php: 5.6
env: BEHAT_OPTS="--profile=rest --suite=fullXml --tags='~@broken'" SETUP_SCRIPT=./bin/.travis/prepare_behat.sh PHP_IMAGE=ezsystems/php:5.6-v1 PHP_IMAGE_DEV=ezsystems/php:5.6-v1-dev EZPLATFORM_BRANCH=1.13
- php: 5.6
env: BEHAT_OPTS="--profile=rest --suite=fullJson --tags='~@broken'" SETUP_SCRIPT=./bin/.travis/prepare_behat.sh PHP_IMAGE=ezsystems/php:5.6-v1 PHP_IMAGE_DEV=ezsystems/php:5.6-v1-dev EZPLATFORM_BRANCH=1.13
# test only master and pull requests
branches:
only:
- master
# setup requirements for running Behat tests
before_install:
# Disable memory_limit for composer in PHP 5.6
- echo "memory_limit=-1" >> ~/.phpenv/versions/5.6/etc/conf.d/travis.ini
- eval $SETUP_SCRIPT
# execute phpunit or behat as the script command
script:
- cd "$HOME/build/ezplatform";
- docker-compose exec --user www-data app sh -c "bin/behat $BEHAT_OPTS"
# disable mail notifications
notification:
email: false
# reduce depth (history) of git checkout
git:
depth: 30