forked from Novactive/NovaeZSEOBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (36 loc) · 1.35 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
language: php
php:
- 5.4
env:
# test demo with content
- INSTALL="demoContentNonUniqueDB" PROFILE="demo" TEST="content"
branches:
only:
- feature-continuous-integration
before_install:
- export BRANCH_BUILD_DIR=$TRAVIS_BUILD_DIR
- export TRAVIS_BUILD_DIR="$HOME/build/ezpublish-community"
- export NOVABUNDLE_PATH="vendor/novactive/ezseobundle"
- cd "$HOME/build"
- git clone --depth 1 --single-branch --branch master https://github.com/ezsystems/ezpublish-community.git
- cd ezpublish-community
- git fetch origin :refs/tags/v2014.11.1
- git checkout tags/v2014.11.1
- ./bin/.travis/prepare_system.sh
- ./bin/.travis/prepare_sahi.sh
before_script:
- ./bin/.travis/prepare_ezpublish.sh
- mkdir -p "$NOVABUNDLE_PATH"
- rm -rf "$NOVABUNDLE_PATH"
- mv "$BRANCH_BUILD_DIR" "$NOVABUNDLE_PATH"
- ./"$NOVABUNDLE_PATH"/build/.travis/bundle_setup.sh
- php ezpublish/console assetic:dump --env=behat --no-debug
script:
- ./bin/phpcs --standard=vendor/novactive/phpcs-novastandards/src/NovaEZ "$NOVABUNDLE_PATH"
#- ./bin/phpmd "$NOVABUNDLE_PATH" text cleancode,codesize,controversial,design
- ./bin/phpcpd "$NOVABUNDLE_PATH"
- ./bin/phpunit -c "$NOVABUNDLE_PATH" --testsuite NovaeZSEOBundleNoCrawler
# - ./bin/behat -c "$NOVABUNDLE_PATH"/behat.yml.dist -vv --profile travis
# reduce depth (history) of git checkout
git:
depth: 30