-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
44 lines (35 loc) · 1.32 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
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 demo with content
- INSTALL="demoContentNonUniqueDB" PROFILE="demo" TEST="content"
# test demo w/o content
- PROFILE="demo" TEST="clean"
# test only master (+ Pull requests)
branches:
only:
- master
# Setup system for behat testing
before_script:
# Change local git repo to be a full one as we will reuse current checkout for composer install below
- git fetch --unshallow && git checkout -b tmp_travis_branch
- export BRANCH_BUILD_DIR=$TRAVIS_BUILD_DIR
- export TRAVIS_BUILD_DIR="$HOME/build/ezplatform"
- cd "$HOME/build"
# Checkout meta repo, change the branch and/or remote to use a different ezpublish branch/distro
- git clone --depth 1 --single-branch --branch master https://github.com/ezsystems/ezplatform.git
- cd ezplatform
# Install everything needed for behat testing, using our local branch of this repo
- ./bin/.travis/setup_from_external_repo.sh $BRANCH_BUILD_DIR "ezsystems/demobundle:dev-tmp_travis_branch"
# execute behat as the script command
script:
- php bin/behat -vv --profile $PROFILE --suite $TEST
# disable mail notifications
notification:
email: false
# reduce depth (history) of git checkout
git:
depth: 30