Skip to content

Commit 175866a

Browse files
author
neustadt
committed
Travis CI
1 parent ae12030 commit 175866a

File tree

1 file changed

+34
-25
lines changed

1 file changed

+34
-25
lines changed

.travis.yml

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,56 @@
11
language: php
2+
23
php:
3-
- 7.0
4-
- 7.1
4+
- 7.0
5+
- 7.1
6+
57
sudo: false
8+
69
services:
7-
- mysql
10+
- mysql
11+
812
env:
913
matrix:
10-
- SHOPWARE_VERSION="5.2"
11-
- SHOPWARE_VERSION="5.3"
14+
- SHOPWARE_VERSION="5.2"
15+
- SHOPWARE_VERSION="5.3"
1216
global:
13-
- PLUGIN_NAME=WbmQueryManager
14-
- SHOPWARE_DIRECTORY=${HOME}/shopware
15-
- PLUGIN_DIRECTORY=${SHOPWARE_DIRECTORY}/custom/plugins
17+
- PLUGIN_NAME=WbmQueryManager
18+
- SHOPWARE_DIRECTORY=${HOME}/shopware
19+
- PLUGIN_DIRECTORY=${SHOPWARE_DIRECTORY}/custom/plugins
20+
1621
cache:
17-
directories:
18-
- ${HOME}/.composer/cache/files
22+
directories:
23+
- ${HOME}/.composer/cache/files
24+
1925
install:
20-
- composer install
26+
- composer install
27+
2128
before_script:
22-
- if [[ "$(php --version | grep -cim1 xdebug)" -ge 1 ]]; then phpenv config-rm xdebug.ini;
23-
fi
24-
- git clone https://github.com/shopware/shopware.git ${SHOPWARE_DIRECTORY} --branch
25-
${SHOPWARE_VERSION}
26-
- ant -f ${SHOPWARE_DIRECTORY}/build/build.xml -Dapp.host=localhost -Ddb.user=travis
27-
-Ddb.host=127.0.0.1 -Ddb.name=shopware build-unit
28-
- mv ${TRAVIS_BUILD_DIR} ${PLUGIN_DIRECTORY}/${PLUGIN_NAME}
29-
- php ${HOME}/shopware/bin/console sw:plugin:refresh
30-
- php ${HOME}/shopware/bin/console sw:plugin:install ${PLUGIN_NAME}
31-
- php ${HOME}/shopware/bin/console sw:plugin:activate ${PLUGIN_NAME}
32-
- cd ${PLUGIN_DIRECTORY}/${PLUGIN_NAME}
29+
- if [[ "$(php --version | grep -cim1 xdebug)" -ge 1 ]]; then phpenv config-rm xdebug.ini; fi
30+
- git clone https://github.com/shopware/shopware.git ${SHOPWARE_DIRECTORY} --branch ${SHOPWARE_VERSION}
31+
- ant -f ${SHOPWARE_DIRECTORY}/build/build.xml -Dapp.host=localhost -Ddb.user=travis -Ddb.host=127.0.0.1 -Ddb.name=shopware build-unit
32+
- mv ${TRAVIS_BUILD_DIR} ${PLUGIN_DIRECTORY}/${PLUGIN_NAME}
33+
- php ${HOME}/shopware/bin/console sw:plugin:refresh
34+
- php ${HOME}/shopware/bin/console sw:plugin:install ${PLUGIN_NAME}
35+
- php ${HOME}/shopware/bin/console sw:plugin:activate ${PLUGIN_NAME}
36+
- cd ${PLUGIN_DIRECTORY}/${PLUGIN_NAME}
37+
3338
script:
34-
- composer test
39+
- composer test
40+
3541
after_success:
36-
- ./build.sh
42+
- ./build.sh
43+
3744
matrix:
3845
allow_failures:
3946
- env: SHOPWARE_VERSION="5.3"
4047
- php: nightly
48+
4149
deploy:
4250
provider: releases
4351
api_key:
4452
secure: QJX2JbIu4XczmVxPzfxd0PIAfvgSLKX9o7ahjuUFFc9UBUzU1ZIFkz2+jzRsD69WFxoT1PslKbMRNJua1q0NJ0IWHl159Y+jUjqPol2KgAXXz8QJLF6D4sm7BH+BXOhbVHgtzEyrN2RF/7xdqnvZoiJVzUWy56qVo62Fan5PUq/5A04RI4vZQyksAeElT/VGKNEWI+vKKB4Va19BpQ3x9nJqJ8MR1xF7f7BYbwGcl2zkuBMiUN+sQwf7VtNS7r793kMlezyDxUyaTLjNMSNgCm6y3hHJmA8PaU+TthOKB6pbIlg2OllSoQ63tviAJNF4SawB6PSAhjp+tD3Kd3YblMRQMAAWLxNi5GxbBJLTv8JLJclW+jYTE3341WnX68MS3v+uxWzBHmWXoO62h91nv9wsJC/iiGLp+lwrgCnbpqX2xxC32QSS1nsg2rRUxOBgUGyURoCgGxN67zaXAqUaygyyhbLWdhuMIpseKgfvU7fB/4BAylzGQsiaXcdhEgTCX2d55v7bjf71Kf3CcK/alaovEqmtGjLJvPCdCnmjGEmZp/FBxTKHkld1t3Nd7y7lbZ/pRkTmRtY0o+b85OrV9pWrJ5tAEUdoBk9HpfpuTVS6cmSkKr+P9Ze5qNYBlvnisql1Vt6sWR5TTiZrPjU7upljKl7rlMrglUnwVulsSEA=
53+
file_glob: true
4554
file: WbmQueryManager*.zip
4655
on:
47-
repo: webmatch/WbmQueryManager
56+
tags: true

0 commit comments

Comments
 (0)