Skip to content

Commit

Permalink
Added config for travis, Fixed mysql port, if its different to default
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Mar 6, 2017
1 parent 1e71e02 commit 4dbe4c0
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: php

php:
- 7.0

sudo: false

script:
- "./build.sh"

deploy:
provider: releases
api_key:
secure: U2OcY4bAhmo+eoRJ6UJE2uRkPyx+FVpnqCYO9JvJKrNiEgrxttQLyUszz/wVjJ9or4doUyWQ2B2qsmzZHJZDT8nxG9MIbEy/F4ppJdOE0+pbRj3YXDlJp/BsrctyIq8mDMD93h43fBnl06Wyyx4AQDmrvZr0u+kqviVEh7nRgVar0UiUc7pWNCxUAebIvDE9mbBdktdHnfjCQ7Wq0Y/N1CMLeBw9W8LZiurnk5e629WWJcVkfiVaEQGCCxLVBcjpyjXJXUnoewcMPzLvEBK0HdCyWcy8cPiDKvQz/ll5Aut5x8GZlkLc2PoPOJNtgC93CavZq1N0wvlVr4a1qCw8utshrjD6m9d04jVFjfgtpkJrloMTPOxrOR0VbPf8PvzhRQUYHHSpB4wmZEBR0otnNRhxj+eUD46+NLQpSutIoQ78gKHeuT6GdS2REh6PZ/JphMubmTAb502ONfCOtiC6GOz2smAoeN5c9/eCJag9yYdtU/2OqJ3a6dJM/isua5G7Edq/KBy4pXXk8+9jK21kQ6VjAENHn5D1Yh6edf0EDWIdZRcdppyk3OyGqoLhqCF7yoRpz36cBpqTBk5XLmNwgfsaPvaGTLhBhwbCx7S0dIzVkYSMABK2ftQi+2p1nRPe71dIe46/w0etvdFXwjXiuCYE+DPoIN2NE9mjnp+6PzY=
file: AdminerForShopware-*.zip
file_glob: true
on:
tags: true
2 changes: 1 addition & 1 deletion Views/backend/adminer/form.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<form action="{$postUri}" method="post">
<input type="hidden" name="auth[driver]" value="server">
<input type="hidden" name="auth[server]" value="{$dbData.host}">
<input type="hidden" name="auth[server]" value="{$dbData.host}:{$dbData.port}">
<input type="hidden" name="auth[username]" value="{$dbData.username}">
<input type="hidden" name="auth[password]" value="{$dbData.password}">
<input type="hidden" name="auth[db]" value="{$dbData.dbname}">
Expand Down
14 changes: 14 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

commit=$1
if [ -z ${commit} ]; then
commit=$(git tag | tail -n 1)
if [ -z ${commit} ]; then
commit="master";
fi
fi

# Build new release
mkdir -p Backend/AdminerForShopware
git archive ${commit} | tar -x -C Backend/AdminerForShopware
zip -r AdminerForShopware-${commit}.zip Backend/AdminerForShopware

0 comments on commit 4dbe4c0

Please sign in to comment.