-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
53 lines (45 loc) · 1.48 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
language: php
php:
- 7.2
sudo: false
services:
- mysql
env:
matrix:
- SHOPWARE_VERSION="5.5"
global:
- PLUGIN_NAME=FroshSimultaneousEditNotification
script:
-
stages:
- name: Store-Check
if: tag IS blank AND env(PLUGIN_ID) IS present AND type != pull_request
- name: Store-Sync
if: branch = master AND env(PLUGIN_ID) IS present AND type != pull_request
- name: Store-Deploy
if: tag IS present
jobs:
include:
- stage: Store-Check
php: 7.3
before_script: skip
install:
- ./build.sh "master"
- wget 'https://github.com/FriendsOfShopware/FroshPluginUploader/releases/download/0.1.0/frosh-plugin-upload.phar' -O frosh-plugin-upload.phar
script:
- php frosh-plugin-upload.phar plugin:validate ${TRAVIS_BUILD_DIR}/${PLUGIN_NAME}*.zip
- stage: Store-Sync
before_script: skip
php: 7.3
install:
- wget 'https://github.com/FriendsOfShopware/FroshPluginUploader/releases/download/0.1.0/frosh-plugin-upload.phar' -O frosh-plugin-upload.phar
script:
- php frosh-plugin-upload.phar plugin:update ${TRAVIS_BUILD_DIR}/Resources/store
- stage: Store-Deploy
before_script: skip
php: 7.3
install:
- wget 'https://github.com/FriendsOfShopware/FroshPluginUploader/releases/download/0.1.0/frosh-plugin-upload.phar' -O frosh-plugin-upload.phar
script:
- ./build.sh
- php frosh-plugin-upload.phar plugin:upload ${TRAVIS_BUILD_DIR}/${PLUGIN_NAME}*.zip