Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

Commit 17f5f06

Browse files
committed
Deployment improvement
1 parent 7c52e87 commit 17f5f06

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,5 @@ script:
3333
- vendor/bin/phpunit
3434

3535
after_success:
36-
- echo "EXECUTE_DEPLYMENT = $EXECUTE_DEPLOYMENT"
37-
- echo "TRAVIS_BRANCH = $TRAVIS_BRANCH"
38-
- echo "TRAVIS_PULL_REQUEST = $TRAVIS_PULL_REQUEST"
39-
- if [[ $EXECUTE_DEPLOYMENT == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then composer install --no-dev --prefer-dist --no-interaction ; fi
40-
- if [[ $EXECUTE_DEPLOYMENT == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then ./bin/deploy.sh ; fi
36+
- if [[ $EXECUTE_DEPLOYMENT == 'true' && $(git branch | sed -n -e 's/^\* \(.*\)/\1/p') == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then composer install --no-dev --prefer-dist --no-interaction ; fi
37+
- if [[ $EXECUTE_DEPLOYMENT == 'true' && $(git branch | sed -n -e 's/^\* \(.*\)/\1/p') == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then ./bin/deploy.sh ; fi

0 commit comments

Comments
 (0)