mirror of
https://github.com/retailcrm/opencart-module.git
synced 2025-03-30 11:40:11 +03:00
skipping builds on tags
This commit is contained in:
parent
bc0d3660ad
commit
04da58c185
1 changed files with 4 additions and 6 deletions
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…
Add table
Reference in a new issue