-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
55 lines (44 loc) · 1.91 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
49
50
51
52
53
54
55
language: php
php:
- 7.1
- 7.2
sudo: false
services:
- mysql
env:
matrix:
- SHOPWARE_VERSION="5.6"
global:
- PLUGIN_NAME=WbmQueryManager
- SHOPWARE_DIRECTORY=${HOME}/shopware
- PLUGIN_DIRECTORY=${SHOPWARE_DIRECTORY}/custom/plugins
cache:
directories:
- ${HOME}/.composer/cache/files
install:
- composer install
before_script:
- if [[ "$(php --version | grep -cim1 xdebug)" -ge 1 ]]; then phpenv config-rm xdebug.ini; fi
- git clone https://github.com/shopware/shopware.git ${SHOPWARE_DIRECTORY} --branch ${SHOPWARE_VERSION}
- ant -f ${SHOPWARE_DIRECTORY}/build/build.xml -Dapp.host=localhost -Ddb.user=travis -Ddb.host=127.0.0.1 -Ddb.name=shopware build-unit
- mv ${TRAVIS_BUILD_DIR} ${PLUGIN_DIRECTORY}/${PLUGIN_NAME}
- php ${HOME}/shopware/bin/console sw:plugin:refresh
- php ${HOME}/shopware/bin/console sw:plugin:install ${PLUGIN_NAME}
- php ${HOME}/shopware/bin/console sw:plugin:activate ${PLUGIN_NAME}
- cd ${PLUGIN_DIRECTORY}/${PLUGIN_NAME}
script:
- composer test
after_success:
- ./build.sh
#matrix:
# allow_failures:
# - env: SHOPWARE_VERSION="5.2"
# - php: nightly
deploy:
provider: releases
api_key:
secure: QJX2JbIu4XczmVxPzfxd0PIAfvgSLKX9o7ahjuUFFc9UBUzU1ZIFkz2+jzRsD69WFxoT1PslKbMRNJua1q0NJ0IWHl159Y+jUjqPol2KgAXXz8QJLF6D4sm7BH+BXOhbVHgtzEyrN2RF/7xdqnvZoiJVzUWy56qVo62Fan5PUq/5A04RI4vZQyksAeElT/VGKNEWI+vKKB4Va19BpQ3x9nJqJ8MR1xF7f7BYbwGcl2zkuBMiUN+sQwf7VtNS7r793kMlezyDxUyaTLjNMSNgCm6y3hHJmA8PaU+TthOKB6pbIlg2OllSoQ63tviAJNF4SawB6PSAhjp+tD3Kd3YblMRQMAAWLxNi5GxbBJLTv8JLJclW+jYTE3341WnX68MS3v+uxWzBHmWXoO62h91nv9wsJC/iiGLp+lwrgCnbpqX2xxC32QSS1nsg2rRUxOBgUGyURoCgGxN67zaXAqUaygyyhbLWdhuMIpseKgfvU7fB/4BAylzGQsiaXcdhEgTCX2d55v7bjf71Kf3CcK/alaovEqmtGjLJvPCdCnmjGEmZp/FBxTKHkld1t3Nd7y7lbZ/pRkTmRtY0o+b85OrV9pWrJ5tAEUdoBk9HpfpuTVS6cmSkKr+P9Ze5qNYBlvnisql1Vt6sWR5TTiZrPjU7upljKl7rlMrglUnwVulsSEA=
file_glob: true
file: WbmQueryManager*.zip
on:
tags: true