mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-22 05:06:07 +03:00
skipping builds on tags
This commit is contained in:
parent
bc0d3660ad
commit
04da58c185
10
.travis.yml
10
.travis.yml
@ -4,6 +4,8 @@ dist: trusty
|
|||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
if: tag IS blank
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- 7.0
|
- 7.0
|
||||||
- 7.1
|
- 7.1
|
||||||
@ -23,7 +25,6 @@ env:
|
|||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- build
|
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
before_script: make before_script
|
before_script: make before_script
|
||||||
@ -32,12 +33,9 @@ script: composer test
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: build
|
|
||||||
before_script: skip
|
|
||||||
script: make build_archive
|
|
||||||
- stage: deploy
|
- stage: deploy
|
||||||
before_script: skip
|
before_script: skip
|
||||||
script: skip
|
script: make build_archive
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- export VERSION=`cat VERSION`
|
- export VERSION=`cat VERSION`
|
||||||
- export ARCHIVE_NAME=/tmp/retailcrm-$VERSION.zip
|
- export ARCHIVE_NAME=/tmp/retailcrm-$VERSION.zip
|
||||||
@ -50,5 +48,5 @@ jobs:
|
|||||||
api_key: $GITHUB_OAUTH_TOKEN
|
api_key: $GITHUB_OAUTH_TOKEN
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
file: $ARCHIVE_NAME
|
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
|
after_deploy: make delete_archive
|
Loading…
Reference in New Issue
Block a user