forked from ezsystems/DemoBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (33 loc) · 1.1 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
language: php
# run tests on php 5.4 only and let unit / integration tests deal with php differences
php:
- 5.4
# list of paths/bundle to execute
env:
- TEST_SUIT="@eZDemoBundle"
# test only master (+ Pull requests)
branches:
only:
- master
# Get ezpublish5 repo, set it as build dir & install it's packages
before_install:
- export OLD_TRAVIS_BUILD_DIR="$TRAVIS_BUILD_DIR"
- export TRAVIS_BUILD_DIR="$HOME/build/ezpublish-community"
- cd "$HOME/build"
- git clone --depth 1 https://github.com/ezsystems/ezpublish-community.git
- cd ezpublish-community
- ./bin/.travis/behat_before_install.sh
# setup requirements for running tests, move our bundle in & run last requirements script
before_script:
- ./bin/.travis/behat_before_script1.sh
- rm -fR vendor/ezsystems/demobundle/EzSystems/DemoBundle
- mv "$OLD_TRAVIS_BUILD_DIR" vendor/ezsystems/demobundle/EzSystems
- ./bin/.travis/behat_before_script2.sh
# execute behat as the script command
script: "bin/behat $TEST_SUIT"
# disable mail notifications
notification:
email: false
# reduce depth (history) of git checkout
git:
depth: 30