From 79401b25bc4428bd26e095a214cef735d4cf9de0 Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Thu, 5 Mar 2020 11:07:59 +0300 Subject: [PATCH 1/2] fix travis deploy --- .travis.yml | 12 ++++++++++-- Makefile | 2 -- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 15d33c0a..7f4298ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,10 @@ stages: - github releases - deploy +before_install: + - export LAST_TAG=`git describe --abbrev=0 --tags` + - export CURRENT_VERSION=v`cat VERSION` + before_script: - nvm install 10 - make install @@ -257,8 +261,12 @@ jobs: condition: "$LAST_TAG != $CURRENT_VERSION" if: branch = master AND type = push AND fork = false - stage: deploy + before_install: skip + before_script: skip + script: make svn_clone deploy: cleanup: false provider: script - script: make - if: branch = master AND type = push AND fork = false \ No newline at end of file + script: make svn_push + if: branch = master AND type = push AND fork = false + after_success: make remove_dir \ No newline at end of file diff --git a/Makefile b/Makefile index fb8f0c93..f9e10980 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,6 @@ VERSION = `cat $(FILE)` .PHONY: test -all: svn_clone svn_push remove_dir - svn_clone: mkdir /tmp/svn_plugin_dir svn co $(SVNREPOURL) /tmp/svn_plugin_dir --username $(USERNAME) --password $(PASSWORD) --no-auth-cache From 889476fa89b1cd8a41f78ae33c897e8d207bc325 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Tue, 3 Mar 2020 17:53:54 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index bb9ceca6..872c99cb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Build Status](https://img.shields.io/travis/retailcrm/woocommerce-module/master.svg?style=flat-square)](https://travis-ci.org/retailcrm/woocommerce-module) +[![Coverage](https://img.shields.io/codecov/c/gh/retailcrm/woocommerce-module/master.svg?style=flat-square)](https://codecov.io/gh/retailcrm/woocommerce-module) [![WordPress plugin](https://img.shields.io/wordpress/plugin/v/woo-retailcrm.svg?style=flat-square)](https://wordpress.org/plugins/woo-retailcrm/) [![PHP version](https://img.shields.io/badge/PHP->=5.3-blue.svg?style=flat-square)](https://php.net/)