From 9e1edf2fcc9851b4513989d6a4cd95f1878440e1 Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Tue, 18 Feb 2020 10:11:51 +0300 Subject: [PATCH] test deploy --- .travis.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index ae37782..6c3dd86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,15 +32,20 @@ before_script: - (php -S localhost:8000 -t www &) 2> /dev/null > /dev/null - sleep 2 +script: + - composer test + jobs: include: - - script: composer test - -deploy: - skip_cleanup: true - provider: script - script: make - on: - php: 7.1 - branch: master - condition: "$DEPLOY = true" + - stage: GitHub Release + script: make build_archive + before_deploy: + - `cat VERSION|awk '{print "export ARCHIVE_NAME=retailcrm-"$1".zip"}'` + deploy: + provider: releases + api_key: $GITHUB_OAUTH_TOKEN + skip_cleanup: true + file: $ARCHIVE_NAME + on: + php: 7.1 + branch: master \ No newline at end of file