Created
May 2, 2017 11:50
-
-
Save St0iK/13ece89d3689726b72240ecef0d3bbe7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
checks: | |
php: true | |
javascript: true | |
coding_style: | |
php: | |
spaces: | |
before_parentheses: | |
if: false | |
for: false | |
while: false | |
switch: false | |
catch: false | |
braces: | |
classes_functions: | |
class: new-line | |
function: new-line | |
closure: end-of-line | |
filter: | |
paths: | |
- 'src/*' | |
- 'frontend/src/js/app/*' | |
build: | |
environment: | |
php: | |
version: '7.0' | |
ini: | |
'phar.readonly': 'Off' | |
deployment: | |
- | |
branch: master | |
commands: | |
# Build the .phar file (will take around 1 min) | |
- ./box.phar build | |
# Grab the new sha1 code | |
- sha1sum release.phar > release.phar.version | |
# set the contents of the version file into an environment variable | |
- export `cat version` | |
# escape the version so we can search for it, including the dots | |
- ESCAPED_VERSION=$(echo $VERSION | sed 's/\./\\./g') | |
# extracting the remote address here doesn't work because it fails when the code is cached (which seems to be often) | |
- echo $GIT_REMOTE | |
- git fetch origin | |
- git checkout -b master | |
- git branch | |
- git status | |
- git config --global user.email "[email protected]" | |
- git config --global user.name "Dimitris Stoikidis" | |
- git add release.phar | |
- git add release.phar.version | |
- git commit -m 'Update Phar & release version file' | |
- git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment