forked from ezsystems/ezpublish-community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (39 loc) · 1.29 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
# We do Behat testing here, lots of sudo going on
sudo: required
# 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:
# 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 -c behat.yml.dist -v --profile setupWizard --suite $INSTALL
# execute behat as the script command
script:
- php bin/behat -c behat.yml.dist -v --profile $PROFILE --suite $TEST
# disable mail notifications
notifications:
email: false
# reduce depth (history) of git checkout
git:
depth: 30