-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
61 lines (50 loc) · 1.42 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
56
57
58
59
60
61
language: php
addons:
apt:
packages:
- ant
php:
- 7.2
- 7.3
- 7.4
sudo: false
services:
- mysql
env:
matrix:
- SHOPWARE_VERSION="6.1"
- SHOPWARE_VERSION="6.2"
global:
- PLUGIN_NAME=WbmTagManagerEcomm
- 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
- composer self-update 1.10.20
- git clone https://github.com/shopware/production.git ${SHOPWARE_DIRECTORY} --branch ${SHOPWARE_VERSION}
- cd ${SHOPWARE_DIRECTORY}
- composer install
- echo APP_ENV=prod >> .env
- echo APP_SECRET=8583a6ff63c5894a3195331701749943 >> .env
- echo APP_URL=http://localhost >> .env
- echo DATABASE_URL=mysql://travis:@127.0.0.1:3306/shopware >> .env
- mv ${TRAVIS_BUILD_DIR} ${PLUGIN_DIRECTORY}/${PLUGIN_NAME}
- php ${SHOPWARE_DIRECTORY}/bin/console plugin:refresh
- php ${SHOPWARE_DIRECTORY}/bin/console plugin:install -a ${PLUGIN_NAME}
- cd ${PLUGIN_DIRECTORY}/${PLUGIN_NAME}
script:
- composer test
after_success:
- ./build.sh
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: WbmTagManagerEcomm*.zip
on:
tags: true