From 04da58c185e68288f6bb64d701a2ee0979529eab Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Tue, 18 Feb 2020 14:28:55 +0300 Subject: [PATCH] skipping builds on tags --- .travis.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 360bd3c..0d2e985 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ dist: trusty sudo: false +if: tag IS blank + php: - 7.0 - 7.1 @@ -23,7 +25,6 @@ env: stages: - test - - build - deploy before_script: make before_script @@ -32,12 +33,9 @@ script: composer test jobs: include: - - stage: build - before_script: skip - script: make build_archive - stage: deploy before_script: skip - script: skip + script: make build_archive before_deploy: - export VERSION=`cat VERSION` - export ARCHIVE_NAME=/tmp/retailcrm-$VERSION.zip @@ -50,5 +48,5 @@ jobs: api_key: $GITHUB_OAUTH_TOKEN skip_cleanup: true file: $ARCHIVE_NAME - if: (branch = master) AND (type = push) AND (fork = true) + if: (branch = master) AND (type = push) AND (fork = false) after_deploy: make delete_archive \ No newline at end of file