Skip to content

Commit

Permalink
require stable core
Browse files Browse the repository at this point in the history
  • Loading branch information
jpuck committed May 5, 2017
1 parent a47a94b commit 5f03e87
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 22 deletions.
26 changes: 26 additions & 0 deletions bin/release.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

set -e

if [ -z "$1" ]; then
echo "version required"
exit 1
fi

# move to working directory
cd $( dirname "${BASH_SOURCE[0]}" )/../

# add version to script
sed -i "s/namespace gpgl\\\console;/namespace gpgl\\\console;\n\$version = '$1';/" bin/gpgl

composer install --no-dev

# https://github.com/clue/phar-composer
phar-composer build .

# undo hard-coded version in script
git reset --hard

git tag -s "$1"

composer install
11 changes: 1 addition & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,8 @@
"bin": ["bin/gpgl"],
"require": {
"symfony/console": "^3.2",
"gpgl/core": "dev-dev"
"gpgl/core": "^0.1"
},
"repositories": [
{
"type": "path",
"url": "../core",
"options": {
"symlink": false
}
}
],
"autoload": {
"psr-4": {
"gpgl\\console\\": "src/"
Expand Down
26 changes: 14 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5f03e87

Please sign in to comment.