Build dev branch in travis
This commit is contained in:
+9
-8
@@ -29,18 +29,19 @@ after_failure:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: deploy
|
- stage: package
|
||||||
script: skip
|
script: skip
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash
|
- curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash
|
||||||
deploy:
|
deploy:
|
||||||
provider: script
|
- provider: script
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
script: ./.travis/deploy_script.sh
|
script:
|
||||||
on:
|
- if [ "$TRAVIS_BRANCH" = "dev" ]; then ./.travis/deploy_script.sh; fi
|
||||||
branch: master
|
- if [ "$TRAVIS_BRANCH" = "master" ]; then ./.travis/deploy_script.sh; fi
|
||||||
php: '7.0'
|
on:
|
||||||
- stage: release
|
php: '7.0'
|
||||||
|
- stage: deploy-release
|
||||||
script: skip
|
script: skip
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash
|
- curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ if [ "$TRAVIS" = "true" ]; then
|
|||||||
if test "$TRAVIS_TAG"; then
|
if test "$TRAVIS_TAG"; then
|
||||||
PKG_NAME=$TRAVIS_TAG
|
PKG_NAME=$TRAVIS_TAG
|
||||||
else
|
else
|
||||||
PKG_NAME=v7.0.0-master
|
PKG_NAME=v7.0.0-$TRAVIS_BRANCH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FILE_NAME="phpvms-$PKG_NAME"
|
FILE_NAME="phpvms-$PKG_NAME"
|
||||||
|
|||||||
Reference in New Issue
Block a user