Skip to content

Commit

Permalink
Improve travis for store
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Jan 16, 2019
1 parent 5107532 commit 7717fdc
Showing 1 changed file with 31 additions and 18 deletions.
49 changes: 31 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,45 @@ before_script:
- cd ${PLUGIN_DIRECTORY}/${PLUGIN_NAME}

script:
- wget 'https://github.com/FriendsOfShopware/FroshPluginUploader/blob/master/frosh-plugin-upload.phar?raw=true' -O frosh-plugin-upload.phar
- composer test
- composer test-unit

after_success:
- ./build.sh $TRAVIS_TAG

stages:
- test
- Store-Check
- name: Store-Sync
if: branch = 1.3
- name: Store-Deploy
if: tag IS present

jobs:
include:
- stage: Store-Check
php: 7.3
install:
- ./build.sh
- wget 'https://github.com/FriendsOfShopware/FroshPluginUploader/blob/master/frosh-plugin-upload.phar?raw=true' -O frosh-plugin-upload.phar
script:
- php frosh-plugin-upload.phar plugin:validate ${TRAVIS_BUILD_DIR}/FroshProfiler*.zip
- stage: Store-Check
php: 7.3
before_script: skip
install:
- ./build.sh 1.3
- wget 'https://github.com/FriendsOfShopware/FroshPluginUploader/blob/master/frosh-plugin-upload.phar?raw=true' -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/blob/master/frosh-plugin-upload.phar?raw=true' -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/blob/master/frosh-plugin-upload.phar?raw=true' -O frosh-plugin-upload.phar
script:
- ./build.sh
- php frosh-plugin-upload.phar plugin:upload ${TRAVIS_BUILD_DIR}/${PLUGIN_NAME}*.zip

deploy:
- provider: releases
Expand All @@ -64,13 +87,3 @@ deploy:
file: FroshProfiler*.zip
on:
tags: true
- provider: script
script: php frosh-plugin-upload.phar plugin:upload ${PLUGIN_DIRECTORY}/${PLUGIN_NAME}/FroshProfiler*.zip
skip_cleanup: true
on:
tags: true
- provider: script
script: php frosh-plugin-upload.phar plugin:update ${PLUGIN_DIRECTORY}/${PLUGIN_NAME}/Resources/store
skip_cleanup: true
on:
branch: 1.3

0 comments on commit 7717fdc

Please sign in to comment.