-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
48 lines (39 loc) · 1.33 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
language: php
# run tests on php 5.5 only and let unit / integration tests deal with php differences
php:
- 5.5
# list of paths/bundle to execute
env:
# run setup wizard to install Demo+Content and then test demo with content
- INSTALL="demoContentNonUniqueDB" PROFILE="demo" TEST="content"
# test Legacy
- INSTALL="demoCleanNonUniqueDB" PROFILE="legacyAdmin" TEST="full"
# test REST
- INSTALL="demoCleanNonUniqueDB" PROFILE="rest" TEST="fullJson"
- INSTALL="demoCleanNonUniqueDB" PROFILE="rest" TEST="fullXml"
# test only master (+ Pull requests)
branches:
only:
- master
# install packages
before_install:
- ./bin/.travis/prepare_system.sh
- ./bin/.travis/prepare_sahi.sh
# - ./bin/.travis/prepare_selenium2.sh
# setup requirements for running tests
before_script:
# Prepare eZ Publish (composer, permissions, assets, cache warmup)
- ./bin/.travis/prepare_ezpublish.sh
# since setup wizard need to actually work to the other test suites to pass
# moved it to before_script so that the random timeout on package fetching
# don't fail travis
- php bin/behat --profile setupWizard --suite $INSTALL
# execute behat as the script command
script:
- php bin/behat --profile $PROFILE --suite $TEST
# disable mail notifications
notification:
email: false
# reduce depth (history) of git checkout
git:
depth: 30