Skip to content

Instantly share code, notes, and snippets.

@St0iK
Created May 2, 2017 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save St0iK/13ece89d3689726b72240ecef0d3bbe7 to your computer and use it in GitHub Desktop.
Save St0iK/13ece89d3689726b72240ecef0d3bbe7 to your computer and use it in GitHub Desktop.
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 "dimitris.stoikidis@epiphanysolutions.co.uk"
- 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